Performance of method calls
Mike Capp
mike.capp at gmail.com
Fri Dec 1 06:31:29 PST 2006
== Quote from Daniel Keep (daniel.keep+lists at gmail.com)'s article
> The only thing I really miss when using structures are constructors and
> destructors. Any reason why we can't have them, Walter? Pwetty pweese?
I think most people use static opCall as a workaround for the lack of struct
ctors. It's not a perfect substitute (in particular, you don't get invariant
checks on 'construction') but it's liveable.
I doubt very much whether Walter will ever add struct dtors - it requires a bunch
of extra code to be generated, and with "scope" there's no great need for them.
cheers
Mike
More information about the Digitalmars-d
mailing list