Am Fri, 25 Jan 2013 21:28:34 +0100
schrieb Johannes Pfau <[email protected]>:

> Am Fri, 25 Jan 2013 12:12:55 -0800
> schrieb "H. S. Teoh" <[email protected]>:
> 
> > 
> > 
> > >   struct Type
> > >   {
> > >       @property void native(int);
> > >   }
> > 
> > This should behave as though you wrote this:
> > 
> >     struct Type
> >     {
> >         // const because there is no setter
> >         const int native;
> >     }
> 
> Only if the getter is marked as const. We can discuss if that should
> be required, but in the code above, native isn't necessarily const.

Ah you fooled me! There is only a setter in the first example!

Reply via email to