Changes before 1.0

Leandro Lucarella llucarella at integratech.com.ar
Mon Dec 4 08:57:14 PST 2006


Frits van Bommel escribió:
> 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...

Yup! =)

>> 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;'?

Well, they have the same value at that point, so what's the difference?

>>     return tmp;
>> }


-- 
Leandro Lucarella
Integratech S.A.
4571-5252



More information about the Digitalmars-d mailing list