Properties sugestion.

Jb jb at nowhere.com
Mon Aug 20 15:45:12 PDT 2007


"Chad J" <gamerChad at _spamIsBad_gmail.com> wrote in message 
news:fad35s$1p2h$1 at digitalmars.com...
> Jb wrote:

> I'll be trying out some template stuff, the kind of thing that was 
> happening at the end of the original thread.  Perhaps this problem can 
> simply be converted to a problem of lacking opDot, though that is somewhat 
> unlikely.  If that doesn't pan out just perfectly, then I'll also be 
> looking at python and delphi properties.

In Delphi theres not much to see tbh. You specify a name and tell it either 
a variable to read and or write, or a getter and or setter method, thats 
about it. It avoids the op++ problem by simply making it illegal, the delphi 
equivelant of op++ is

Inc(foo);

But you cant use that on a property...,
You can't pass a property as a var parameter,

So it's probably only much different to D's current state in that its much 
stricter on what you can and cant do with them.






More information about the Digitalmars-d mailing list