why ; ?

Robert Fraser fraserofthenight at gmail.com
Wed May 7 18:00:51 PDT 2008


bearophile wrote:
> Like this:
> f();
> *g();
> 
> That's a call to f() followed by what it seems an error.
> 
> Bye,
> bearophile

An expression statement is not an error. If g() returns a struct with an 
opStar() that has side effects, that's a perfectly valid construction, 
and an excellent idea for the next D obfuscated code contest you're in.



More information about the Digitalmars-d mailing list