Idea for getting rid of "static" on methods

Mike vertex at gmx.at
Sun Dec 2 14:37:18 PST 2007


This reminds me of this:

http://forums.worsethanfailure.com/forums/thread/82701.aspx

Maybe we could try the same with D :)

BCS Wrote:

> 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