Suggestion: object const'ness

Jarrett Billingsley kb3ctd2 at yahoo.com
Sat May 20 17:44:52 PDT 2006


"Tom" <ihate at spam.com> wrote in message 
news:e4ll86$q0e$1 at digitaldaemon.com...

> One of the flaws of the language IMHO. Also in/out/inout is flawed and 
> seems merely informative instead of being strict in allowing/disallowing 
> parameter modification. I'm on the side of const-like solution and *TRUE* 
> in/out/inout param attributes. When I first read about D and all these 
> promising features I was really amazed till I try some of them (like 
> in/out/etc). I felt disappointed though I still love the language and it's 
> a shame this little stuff doesn't work as one expect.

Just curious; what do you mean by "true" in/out/inout?  Do you mean that 
"in" parameters should not be modifiable (kind of like const)?  If so, what 
about out/inout? 





More information about the Digitalmars-d mailing list