thanks , this is nice , at first i thought fpc may accept Tpoint instead of function point
Write(Sum([TPoint(2, 2), TPoint(3, 3), TPoint(4, 4)]));
TPoint(2, 2) looks strange, like regular casting, but with many arguments.
If you want, you can use
TPoint type in this way:
Write(Sum([TPoint.Create(2, 2), TPoint.Create(3, 3), TPoint.Create(4, 4)]));
Yes, more code to write, but it is correct too.
it would be a killer feature , none of the langauges that i know allow this
This construction is too much similar to regular casting, so rather it will never be used in
Free Pascal.