const debacle

Bill Baxter dnewsgroup at billbaxter.com
Mon Mar 24 08:03:57 PDT 2008


Steven Schveighoffer wrote:
> I also want to be able to specify that the compiler should
> complain if the function modifies the mutable input.

I think that right there is basically the *only* think I really want out 
of a const system.  And even for that "best effort" is good enough for 
me.  Just don't make my life complicated in the name of correctness.  If 
I want that I'll go use Haskell.

--bb



More information about the Digitalmars-d mailing list