Changes before 1.0

Frits van Bommel fvbommel at REMwOVExCAPSs.nl
Mon Dec 4 08:55:12 PST 2006


Some nitpicks :)

Leandro Lucarella wrote:
> I mean, properties are great, but to be really useful they have to 
> support the same semantics as regular variables. Maybe somethig as 
> simple as translating button.width -= 5; as cursor.position = 
> button.width - 5; is enough. Postfix incrementation is maybe the only 

I think that cursor.position should be button.width...

> problematic one, but could be done with something like:
> {
>     auto tmp = cursor.position;
>     cursor.position = cursor.position + 1;

Surely you mean 'cursor.position = tmp + 1;'?

>     return tmp;
> }



More information about the Digitalmars-d mailing list