Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Preprocessor

Name: Anonymous 2011-12-31 17:17

Why do higher level languages not have a preprocessor?

It's a very powerful tool that every language should have.

Name: Anonymous 2011-12-31 18:38

>>5

public class Poo {
   public static void main(String[] args) {
      //#if defined(poo)
      System.out.println("Poo is ${poo}");
      //#else
      System.out.println("Poo is not defined");
      //#endif
 
      //#if ${os_version} == 4.1
      System.out.println("OS 4.1");
      //#elif defined(poo) and ${os_version} >= 4.2
      System.out.println("OS 4.2 and above");
      System.out.println("Ooooh; compound expressions");
      //#endif
   }
}


that's pig disgusting.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List