[fpc-devel] Feature announcement: Type helpers
Alexander Klenin
klenin at gmail.com
Wed Feb 6 14:51:33 CET 2013
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;
--
Alexander S. Klenin
More information about the fpc-devel
mailing list