Thanks a lot for your anwswer and the interesting links.
You're most welcome.
is our main source of information. Please feel free to point out mistakes or better yet, in case you have information you would like to add to actually add it.
As you perhaps can see for yourself there are some things lacking especially when it comes to MorphOS and OS4.
Other interesting links are the official Free Pascal wiki pages, Amiga
(even though the AROS wiki links back to ALB42's fpcamigawiki)
And of course there is the main Free Pascal wiki entry here
, with a extensive list of topics, examples etc. As a general rule of thumb: google search: "freepascal topic" and you usually end up in either the documentation, the wiki or an example somewhere on the web (to get ahead of things, do a search "freepascal delay" and you understand why we can't name our Dos library function delay also delay).
As a little test I coded an openscreen example from c to pascal:
If you are new to Pascal then taking small steps will help you a lot. You might discover it is not that far from C.
The main difference start when using OOP or modern languages constructs such as advanced records, helpers and last but not least the additional (and extensive list of) Pascal libraries (some of them available in native Pascal (such as json, xml, dbf), others depend on external libraries).
I must admit that I never have done things like that before. But I really would like to learn all the necessary stuff
to achieve the goal one day.
Just take your time, and in case of question then please feel free to ask. In case you prefer then feel free to PM (although doing it openly will help others that want to travel the same journey).
...makes completly sense to me in context with achieving a maximum of system indepandance.
One thing that was missing from my previous reply is indeed that ALB42 and me mostly work on getting the other Pascal units working for our platforms. In that regards some OS specific functionality isn't as interesting as it otherwise might be.
For example for Lazarus (visual building applications) there were several approaches and ALB42 ended up with what we currently have available. It is a constant process of development and progress (and sometimes sat-backs).
I tried Delay but tht's not found by the compiler...
Ah yes, sorry.
I should have mentioned that some of our API function names (whether it Amiga, AROS or MorphOS) collide with Pascal functions that are available (all or not available in a particular unit).
Also to stay consistent with the naming we had to change some of the names for our native API calls. A list of changes can be found here
There you can see that the function that you are looking for is now named DosDelay()
Perhaps also an idea to mention is that c makes extensive use of include files (.h files) while it is normal for Pascal to have a unit that contain both the header (in the interface section) as well as the actual implementation (in the implementation section).
In case you are truly lost with Pascal then you can always attempt to get yourself a bit more familiar with things using the official Free Pascal documentation
Of course, in case you get stuck then feel free to ask (although nobody is able to teach you the Pascal language as only you yourself is able to do so). If you are reasonably seasoned with c programming then (i guess) the most difficult part would be to get yourself familiar with the standard Pascal libraries and getting to know where exactly everything is tucked away