[fpc-devel] Feature announcement: Type helpers

Paul Ishenin paul.ishenin at gmail.com
Wed Feb 6 15:01:25 CET 2013


06.02.13, 21:51, Alexander Klenin пишет:
> On Wed, Feb 6, 2013 at 10:31 PM, Michael Schnell <mschnell at lumino.de> wrote:
>>>    point.x := x;
>>>    point.y := y;
>>>    s := point.ToString;
>>>
>> or
>>    s := (x,y).ToString;
>>
>> Has there not recently been a discussion on Tupels ?!?!?! :-)
>>
>
> At least according to my proposal, tuples will not be a type,
> so you'll have to force a type by constructor:
>     s := TPoint(x,y).ToString;
> or, as it is currently, by a special function:
>     s := Point(x,y).ToString;

or with a record constructor:
   TPoint.Create(X, Y).ToString;

Best regards,
Paul Ishenin




More information about the fpc-devel mailing list