AROS Exec

Support => Free Pascal => Topic started by: danilos on October 09, 2019, 02:29:06 AM

Title: references for Amiga structures for Free Pascal
Post by: danilos on October 09, 2019, 02:29:06 AM
hi,

I was trying to use free pascal, I went through the examples and tried to experiment using some c tutorials. I got a compiler error when I tried to define an IntuiText structure.

I am using uses Classes, SysUtils, exec, utility, intuition, gadtools, aGrahics; and my statement is var text1: IntuiText;

I am not sure what I am doing wrong. Is there a reference for the Amiga Free Pascal libraries somewhere?
thank you for any help
Title: Re: references for Amiga structures for Free Pascal
Post by: magorium on October 09, 2019, 03:41:53 AM
Hello danilos,

I am not sure what I am doing wrong.

As a general remark it is generally considered normal for the Pascal language to prefix type definitions with a capital T. Therefor defining your variable as type TIntuitext would be your best bet  ;)

If you wonder why that is then it is to distinquish between types and (other) variable names.

Quote
Is there a reference for the Amiga Free Pascal libraries somewhere?
Yes, fortunately there is  :)

ALB42 generously provides a wiki which can be found here: http://fpcaroswiki.alb42.de/index.php?title=Main_Page

On the main page there is a list of links. One of them points to the Amiga/AROS/MorphOS RTL reference (also generously provided by ALB42) and links to here: http://www.alb42.de/fpc-docu/

It is using html pages as generated by the FreePascal Help System and requires a bit of getting used to (in case tyou are not familiar with the layout):

In case you still have questions then please feel free to ask. Might perhaps take me a while to answer as i'm restricted with my time but an answer you will get  :)

Happy coding !
Title: Re: references for Amiga structures for Free Pascal
Post by: danilos on October 09, 2019, 05:26:53 AM
much appreciated thank you!