[fpc-devel] type discussion

L505 fpc505 at z505.com
Thu Jun 2 21:28:33 CEST 2005


| > 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.




More information about the fpc-devel mailing list