Idea for getting rid of "static" on methods

Sebastian Beschke s.beschke at gmx.de
Sun Dec 2 17:01:34 PST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Matti Niemenmaa schrieb:
> 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.
> 

OMG.

Well done Matti.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHU1VuKb/1n5A2TAMRAh/TAJ0bo2rJlbIQaaF8gE2hy225PonKYgCfSqpG
VKD0g+HUK/VByPhzfL/n1i8=
=z6N3
-----END PGP SIGNATURE-----



More information about the Digitalmars-d mailing list