Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2009-04

FPC : MacMode more info

3 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Pierre Paré

Hi

If not the appropriate list for this question, would you redirect the request

I installed FPC with XCode on an iMac OS X 10.5
I am not a developer , I want to get back at programming for fun. I did not use C++ long enough to learn it. So I chose to use Pascal that I learned at the university ,
I know Pascal well enough but have no prior knowledge on the "Mac Dialect"
I never used Delphi nor TurboPascal per se.

I would like more complete syntax and implementation infos on the "Mac Dialect" in FPC

What is "Object Pascal, Mac style" in FPC :
which object model : like FPC object and record type or like reference FPC class type ,
which class and methods modifiers can or must or must not be used (abstract, class or static, interfaces),
which units may, must or must not be used
for base object TObject : from Object or System unit for framework : TCollection , TStringList from Object or Class unit

Do I need MacMode or will any other mode do ? Can interfaces, generics be used ?
Which object model will I need with Carbon librairies. It seems that accesing Cocoa is more difficult.

I am having a hard time finding (old) MPW, Think or CodeWarrior Pascal references manuals for the Pascal on Macintosh.
Pascal Central has some on general standards references and code banks but I didn't find technical language references specific to the Mac. I would appreciate some links.

Thank you

Pierre Paré

Joost van der Sluis
to Pierre Paré

Op donderdag 09-04-2009 om 20:33 uur [tijdzone -0400], schreef Pierre Paré:

I know Pascal well enough but have no prior knowledge on the "Mac Dialect"

Then don't use it. The compiler-modes are there to make it easier for people to switch from the dialect they are used to. So only when you are used to use 'mac-pascal' you could decide to use the macpas-mode.

If you don't care, use objfpc. (When you want to use classes)

Jooar.

Tomas Hajny
to Joost van der Sluis
Joost van der Sluis wrote 11 lines
Op donderdag 09-04-2009 om 20:33 uur [tijdzone -0400], schreef Pierre Paré: > I know Pascal well enough but have no prior knowledge on the "Mac > Dialect" Then don't use it. The compiler-modes are there to make it easier for people to switch from the dialect they are used to. So only when you are used to use 'mac-pascal' you could decide to use the macpas-mode. If you don't care, use objfpc. (When you want to use classes)

Author of the question is apparently not subscribed to the list, I've added him to Cc: now to forward your answer.

Another part of the answer from Joost would be: our documentation provides some information on differences among the different modes. As mentioned by Joost, there is no need to choose some special mode unless you try to solve a particular problem (like need for compatibility with certain behaviour or functionality supported in other compilers). If you have such a problem, you can search the documentation and try to find the answer there. Otherwise go for objfpc mode for object pascal or the default fpc mode for procedural programming.

Tomas