Suggestion: object const'ness

Derek Parnell derek at psych.ward
Sun May 21 18:26:57 PDT 2006


On Mon, 22 May 2006 12:50:47 +1200, Regan Heath wrote:

...

> All in all, I guess all I'm trying to say is that I like "out" and "inout"  
> I think they perform a valid and valuable task, in fact they're a big step  
> up from the days of using a pointer or passing by reference because they  
> add _more_ meaning, they actually tell you what the function programmer  
> intended to do with the parameter.
> 
> I would like to see some sort of const guarantee and I think "in" should  
> play a part, I think by default parameters should be passed as "in" (as  
> they are) and should be protected/const/read-only by default.

Yeah ... like Regan said. 

-- 
Derek
(skype: derek.j.parnell)
Melbourne, Australia
"Down with mediocracy!"
22/05/2006 11:25:43 AM



More information about the Digitalmars-d mailing list