[fpc-devel] type discussion
Christian Iversen
chrivers at iversen-net.dk
Thu Jun 2 22:52:16 CEST 2005
On Thursday 02 June 2005 21:28, L505 wrote:
> | > In C++:
> | >
> | > TStringList strlist;
> | >
> | > strlist = new TStringList;
> | >
> | > How is that shorter ?
> |
> | okay but its still redundant. Why does the compiler need to have it
> | spelt out twice? Why cant the compiler deduce that as the pointer is
> | declared as TStringlist therefore it creates a TStringList?
>
> Why can't I just go
>
> strlist = new
>
> Draw the line.
(and you can, in several script languages)
--
Regards,
Christian Iversen
More information about the fpc-devel
mailing list