Idea for getting rid of "static" on methods
Matti Niemenmaa
see_signature at for.real.address
Sat Dec 1 02:32:54 PST 2007
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.
--
E-mail address: matti.niemenmaa+news, domain is iki (DOT) fi
More information about the Digitalmars-d
mailing list