[fpc-pascal] {$include %dateyear%}
James Richters
james.richters at productionautomation.net
Sat Dec 25 22:06:34 CET 2021
I see what you mean... I thought it was an Integer because If you do something like:
Writeln({$I %DATEMONTH%}+'/'+{$I %DATEDAY%}+'/'+{$I %DATEYEAR%});
You get Error: Operator is not overloaded: "ShortInt" + "Char"
But that's not what it is.... it's just like typing in hard coded numbers after it's compiled.. because you can do things like
Writeln('{$I %DATEMONTH%}'+'/');
And you wouldn't be able to do that with variables or any type... so it's really not any variable type, it's just numeric text being inserted.
I don't really know what to call it, but integer seems to indicate it has a type, so I agree it should be distinguished from any specific variable type.
James
More information about the fpc-pascal
mailing list