[fpc-pascal] Re: using macros
leledumbo
leledumbo_cool at yahoo.co.id
Mon Oct 1 17:48:13 CEST 2012
If you want to port the code to clean Pascal, I suggest using related
language feature, e.g. dynamic array. You can't really port that macro (even
to a procedure / function), as the first parameter expected is a type name.
If malloc returns Pointer, it doesn't need to be casted, the value is
compatible with any pointer type.
> This means (something) is an array?
pointer, despite it can be treated as array.
--
View this message in context: http://free-pascal-general.1045716.n5.nabble.com/using-macros-tp5711420p5711422.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.
More information about the fpc-pascal
mailing list