Public outcry against new .init behaviour

Deewiant deewiant.doesnotlike.spam at gmail.com
Mon Jul 2 21:36:53 PDT 2007


Sean Kelly wrote:
> I generally use .init in a context where the change doesn't matter, so...

I'd find such code easier to read if you used typeof(foo).init, it's clearer if
that's what you really mean. I've come across this in Tango once or twice: I was
really bewildered to find out that "foo.nan" is equivalent to typeof(foo).nan, I
was wondering if it had something to do with NaN payloads.

-- 
Remove ".doesnotlike.spam" from the mail address.



More information about the Digitalmars-d mailing list