[Issue 1961] Allow "scoped const" contracts

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Dec 2 02:19:21 PST 2008


http://d.puremagic.com/issues/show_bug.cgi?id=1961





------- Comment #12 from maxmo at pochta.ru  2008-12-02 04:19 -------
> Walter Bright wrote:
> > For me, the question is is solving these issues a large enough problem 
> > that justifies adding a rather confusing new variation on const?
> 
This code duplication bug requires to write every rom method in three flavors
to provide good rom interface. For me, this entirely prevents use of const
system in OOP, restricting it to POD alone. I consider this a large enough
problem, worth of new flavor of const. And this feature is not that confusing,
if anyone wants a really confusing feature, he can look at the D templates :)


-- 



More information about the Digitalmars-d-bugs mailing list