Idea for getting rid of "static" on methods
BCS
ao at pathlink.com
Sun Dec 2 13:43:58 PST 2007
Reply to Matti,
> BCS wrote:
>
>> Free kudos* to the first person to get a haiku of key words to
>> compile.
>>
> protected static
> this() { if (new short) assert (is(
> typeof(typeid(int)))); }
>> Anyone want to go for a limerick?
>>
> static assert (is(typeof(new short)));
> static this() { if (new short is new short)
> volatile if (true)
> try { debug null; do {}
> while (false); } catch { return new ushort;}}
> Both compile with 1.024. With 2.0 one could probably use the const
> stuff to good effect.
>
well done Matti!!!
That is cool.
More information about the Digitalmars-d
mailing list