const(Object)ref is here!

Michel Fortin michel.fortin at michelf.com
Wed Dec 8 12:21:38 PST 2010


On 2010-12-08 14:17:10 -0500, Walter Bright <newshound2 at digitalmars.com> said:

> I haven't been able to look at it yet.
> 
> But the const system in dmd is rather complex, and I'm not at all 
> comfortable with saying it works without quite a lot of testing. Some 
> things to test:
> 
> 1. auto variable declarations
> 2. typeof
> 3. mangleof
> 4. template type deduction
> 5. interaction with inout
> 6. arrays of, pointers to, functions returning
> 7. tail const functions
> 8. tail immutable
> 9. tail shared const
> 10. tail inout

I've already tested most of this, but I'll make sure my unit tests 
cover it all.

That said, what's a "tail const function"?

-- 
Michel Fortin
michel.fortin at michelf.com
http://michelf.com/



More information about the Digitalmars-d mailing list