Results 1 to 2 of 2

Thread: Analog Literals

  1. #1
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default Analog Literals

    I just came across something called Analog literals by accident and it's NOT a language extension.. Just a cool feature. Thought I'd share it.

    http://www.eelis.net/C++/analogliterals.xhtml

    Example:

    C++ Code:
    int Area = TruckClass(_________________________________________________
                        /|     |                                                 |
                        ||     |                                                 |
                   .----|-----,|                                                 |
                   ||  ||   ==||                                                 |
              .-----'--'|   ==||                                                 |
              |)-      ~|     ||_________________________________________________|
              | ___     |     |____...==..._  >\______________________________|
         [_/.-.\"--"-------- //.-.  .-.\\/   |/            \\ .-.  .-. //
           ( o )`==="""""""""`( o )( o )     o              `( o )( o )`
            '-'                '-'  '-'                       '-'  '-').area();


    And it'll calculate the area of the truck.. Weird?!

    Any other language features of any language you find is cool? Hidden features? Anything?
    I am Ggzz..
    Hackintosher

  2. #2
    Join Date
    May 2007
    Location
    England/Liverpool
    Posts
    1,004
    Mentioned
    9 Post(s)
    Quoted
    106 Post(s)

    Default

    i've seen this before nothing like you have done with the truck seen it with cubes boxes ect very creative.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •