News for hackers. Stuff that matters.
Re:Perl code that is syntactically correct only on Fridays by em-bee on Wednesday February 16, 2022 @11:03AM (#30361725)
i can do something like this with macros in pike:

the following code produces a syntax error if the time is less than 10 seconds after a full minute.

    #define T __TIME__  
    #if T[6]-48
      #define X 1
    #else
      #define X /
    #endif

    void main()
    {
      write("%d, %c, %O\n", X, T[6], T);
    }

There are no comments on this comment yet.