Maurice Lombardi wrote:
MegaBrutal a écrit:
I thought the system unit is imported automatically, and I don't have to care for it by list it in the uses clause. :S
This is the case for BP, but not for GPC (in this case it is only a BP compatibility unit, unused in "normal" cases).
Indeed. If you look at GPC's System unit, you'll see that it only contains rather obscure functions. And Hi/Lo are in this category, as Maurice explained, since the notion of "high byte" is problematic. In fact if it's only about Hi/Lo, you might want to use explicit code (such as that contained in the System unit), to make it clearer in your code what you mean.
BTW, you can auto-use the System (or any other) unit by adding the parameter "--uses=System" to your command-line. But I wouldn't recommend it unless absolutely necessary.
I thought the system unit is imported automatically, and I don't have to care for it by list it in the uses clause. :S It's good to know, thx. Now it still doesn't want to compile my program. (No prob with Hi and Lo now, but another error is occurred.) I'm trying to figure out the problem, and I'll write again if I can't find a solution.
BTW, have you looked at the chapter "Borland Pascal" in the GPC manual? It addresses some more or less common issues. In particular the section "BP Incompatibilities" contains some differences and how to change some of them via options when necessary.
Frank