DIP4: Properties

Rainer Deyke rainerd at eldwood.com
Sun Jul 26 19:07:42 PDT 2009


BLS wrote:
> immutable property int i -> becomes :
> 
> pure int get_i() nothrow
> {
>  return i
> }

I can't figure out the semantics of this.  Is 'i' a property, a
variable, or both?  If it's both, how do you syntactically distinguish
between them?


-- 
Rainer Deyke - rainerd at eldwood.com



More information about the Digitalmars-d mailing list