[fpc-pascal] Re: FPC on Mac OS X

2008-03-10 Thread Tobias Giesen
Hi Sandy, FPC is just the command line compiler. I suppose you could integrate it with Apple's XCode, but the real GUI that goes with it is called Lazarus. The installation is a bit complicated but it will make you very happy. The instructions are here: http://wiki.lazarus.freepascal.org/OS_X_Pro

Re: [fpc-pascal] FPC on Mac OS X

2008-03-10 Thread Jonas Maebe
On 10 Mar 2008, at 21:22, Sandy Moir wrote: I'm trying to run FPC 2.2 on my G5 iMac (PPC) under OS X 10.4.11. It's unclear to me if this can *only* be run from Terminal; I had expected it to be a "normal" Mac application. After installing Xcode 2.2.0 and FPC, I can find fpc in /usr/local/b

[fpc-pascal] FPC on Mac OS X

2008-03-10 Thread Sandy Moir
I'm trying to run FPC 2.2 on my G5 iMac (PPC) under OS X 10.4.11. It's unclear to me if this can *only* be run from Terminal; I had expected it to be a "normal" Mac application. After installing Xcode 2.2.0 and FPC, I can find fpc in /usr/local/bin, but there's no sign of anything in Applicatio

Re: [fpc-pascal] Functions with out parameters

2008-03-10 Thread Jonas Maebe
On 10 Mar 2008, at 14:19, Damien Gerard wrote: If you have this, the showmessage display an empty string and sometimes the app crashes. I had a doubt so I tried this : procedure AnotherMethod; var s, t: UTF8String; begin s := 'Some text'; t := s; Foo(t, s); // Do something with `s` end;

[fpc-pascal] Functions with out parameters

2008-03-10 Thread Damien Gerard
I have the following function : procedure Foo(const AText: UTF8String; out AValue: UTF8String); begin ShowMessage(AText); // AValue := 'A custom value'; end; procedure AnotherMethod; var s: UTF8String; begin s := 'Some text'; Foo(s, s); // Do something with `s` end; If you have this