On 2010-12-08 14:17:10 -0500, Walter Bright <newshou...@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.for...@michelf.com
http://michelf.com/

Reply via email to