Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Perhaps the most enlightening (and actually useful) purpose of this file is to dramatize the glaring weakness in the c/c++ macro system. A proper macro system would not make it so easy to do this, shall we say, "evil", stuff :)


Ruby too:

    class Fixnum
      def +(other)
        self - other
      end
    end

    10 + 3 
    >>> 7


You can do some gross stuff in Python, as well!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: