[fpc-pascal] FPC 2.0.4 for classic Mac OS is now also out!

2006-09-21 Thread Olle Raab
Hello! Free Pascal 2.0.4 is now also available for classic Mac OS. http://www.freepascal.org/download.html Regards Olle Raab ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] parameter names local, global, glocal

2006-01-21 Thread Olle Raab
06-01-19 13.05, skrev Jonas Maebe följande: > > On 19 jan 2006, at 11:51, L505 wrote: > >> From the FPC ReadLn sources I was under the impression that the Mac >> used #13 for line >> feeds and unix used #10 for line feeds, but I've heard that >> sometimes certain unix >> systems used #13. > > M

Re: [fpc-pascal] FPCUnit article/tutorial online.

2005-10-13 Thread Olle Raab
05-10-11 23.52, skrev L505 följande: > programmer. We have seen the compiler can use "tests" in order to test the > validity of the > compiler. Are these "unit tests" or just "tests". It all seems vague to me. A > compiler is A unit test should test a small module of a program, like a pascal uni

Re: [fpc-pascal] Free pascal for iBookG4(512MB)

2005-10-12 Thread Olle Raab
05-10-11 10.43, skrev Ulrike Höppner följande: > Hello, I am a student of IT in first Semester. I tried to download fpc > on my iBook (Mac OS X) wich worked fine. But it is not possible to open > an run the programm. What am I doing wrong? Please help there are not > very many people using Mac in

[fpc-pascal] Type check for compile time expressions added

2005-08-22 Thread Olle Raab
possible data types are returned. This way ambigouos types can be handled. For instance a value of 1 can be both a boolean and and integer. Svn revision 919 Olle Raab ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org

Re: [fpc-pascal] Fpc on MAC OS X/Carbon with Xcode

2005-05-02 Thread Olle Raab
05-05-02 14.27, skrev Alain Vitry följande: > Dear all, > > Please let me know if this is the wrong list for this issue. Its apropriate. > I'm building the default carbon application for fpc with Xcode Do you have the possibility to submitt the source code for your program ? > integration, an

Re: [fpc-pascal] undefining multiple defines

2005-03-06 Thread Olle Raab
05-03-03 10.55, skrev Marc Santhoff följande: > Am Do, den 03.03.2005 schrieb Marco van de Voort um 08:32: >>> unit b; >>> ... >>> {$undef M1-M15} >> >> Such constructs won't work, for the same reason that variablenames with >> numbers in it can't be used as such. >> >> For the compiler it is an

Re: [fpc-pascal] Nonfunctional debugger on OS X

2005-01-29 Thread Olle Raab
05-01-29 10.05, skrev Paul Davidson följande: > Using XCode as well. It would be good idea to upgrade your compiler to > 1.9.6. Go to directory containing fpc dir and: > > cvs -z 3 -d :pserver:[EMAIL PROTECTED]:/FPC/CVS checkout -r > RELEASE_1_9_6 > > Build instructions are at > http://www.sur

[fpc-pascal] Macro subssystem reworked

2005-01-09 Thread Olle Raab
There has been a major rework of the macro subsystem in free pascal, to support exportable macros for $mode macpas (see separate mail), and to make the implementation cleaner. It is almost transparent, but there might be some subtle effects: * Macros are now stored in symbol tables like ordinary

[fpc-pascal] Exportable compile time variables/macros added to $mode MacPas

2005-01-09 Thread Olle Raab
Now macros/compile time variables defined in the interface part of a unit is exported, in the same manner as ordinary pascal constructs, as in Metrowerks pascal and Think Pascal. Only a mode MacPas unit will export macros and only a mode MacPas unit will import them. As before, MacPas and non-MacP

Re: [fpc-pascal] using units in units...

2004-12-08 Thread Olle Raab
04-12-08 00.27, skrev David Emerson följande: > I'm not sure about it, but it may even be possible to put a uses list inside > initialization and/or finalization sections. No, but the initialization and finalization sections has access to the units already used. Olle __

Re: [fpc-pascal] Freepascal on Mac

2004-10-25 Thread Olle Raab
04-10-23 16.22, skrev Peter Vreman följande: > At 15:38 23-10-2004, you wrote: >> >> My goal is to be able to have the same program I have for Win32 >> compile and run for Mac just by switching compiler's target. > > See www.lazarus.freepascal.org for a the delphi-like RAD environment In Lazaru

Re: [fpc-pascal]Apple Mac pointer problem

2004-09-26 Thread Olle Raab
04-09-24 08.49, skrev [EMAIL PROTECTED] följande: > > - Original Message - > From: "Olle Raab" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, September 24, 2004 8:10 AM > Subject: Re: [fpc-pascal]Apple Mac pointer problem > &g

Re: [fpc-pascal]Apple Mac pointer problem

2004-09-24 Thread Olle Raab
04-09-24 09.44, skrev Stephen Downs följande: > > Thanks for everyones input (Harold - it a Mac thing !!). I'm away for a couple > of days now so won't be able to follow up until next week but I guess I need > to read up on alignment of binary data. > > I assume from what you are saying is that

Re: [fpc-pascal]Apple Mac pointer problem

2004-09-23 Thread Olle Raab
04-09-24 03.33, skrev Harald Houppermans följande: >> Though looking at the code again... why is testDataPointer declared (it >> doesn't seem to be used) ? >> >> In other words... >> >> 1. Does the routine expect a pointer to data ? >> 2. Does the routine expect a pointer to a pointer to data ?

Re: [fpc-pascal]Apple Mac pointer problem

2004-09-23 Thread Olle Raab
04-09-23 23.09, skrev Stephen Downs följande: > -Original Message- > From:Marcel Martin [mailto:[EMAIL PROTECTED] > Sent:Thu 9/23/2004 9:18 PM > To:[EMAIL PROTECTED] > Cc: > Subject:Re: [fpc-pascal]Apple Mac pointer problem > > Stephen Downs a écrit : >> >> I am porti

Re: [fpc-pascal]Graphics cards, VGALIB

2004-09-06 Thread Olle Raab
04-09-06 15.06, skrev Eduardo Morras följande: > At 11:19 06/09/2004, you wrote: > >> On 6 sep 2004, at 09:28, Marco van de Voort wrote: >> Especially in case the linker supports multiple namespaces and one package needs symbol X from library A, and another one from library B. >>>

Re: [fpc-pascal]Graphics cards, VGALIB

2004-09-06 Thread Olle Raab
04-09-05 20.31, skrev Jonas Maebe följande: > > I simply meant that our compiler does part of what make normally does > (figuring out dependencies, compiling different files, ...), but it's > not a full-fledged make replacement. And some kinds of things are > easier to handle with make (you don't

Re: [fpc-pascal]Graphics cards, VGALIB

2004-09-03 Thread Olle Raab
04-09-03 15.27, skrev Marco van de Voort följande: >> On 3 sep 2004, at 14:33, Olle Raab wrote: > >>>> this for legacy *nix compatibility using an environment variable). >>> >>> Can it help by changing the link order ? Or it is not possible wiht a 2 &

Re: [fpc-pascal]Graphics cards, VGALIB

2004-09-03 Thread Olle Raab
04-09-03 13.12, skrev Jonas Maebe följande: > > On 3 sep 2004, at 11:16, Florian Klaempfl wrote: > >> Can't you add the SDLMain to the darwin sdl units and let this call >> main? Or is main defined twice >> then because the sdllib contains a main? > > Yes. And for some reason, the linker picks

Re: [fpc-pascal]how much work is proting fpc

2004-09-03 Thread Olle Raab
04-09-03 10.22, skrev Marco van de Voort följande: > Typically one starts converting the OS API interface, and then try to get > bits and pieces from the most similar OS to convert and get working using > the own API. Startup (entry) code is also always a problem, and new non-unix > ports might al

Re: [fpc-pascal]Where is the error?

2004-09-03 Thread Olle Raab
04-09-01 13.40, skrev [EMAIL PROTECTED] följande: > On Wed, 1 Sep 2004, Olle Raab wrote: > >> But can Delphi classes be used if you are in e g TP mode ? > > No. You need objfpc or delphi mode for that. Then I suggest to add this to the documentation about the language modes.

Re: [fpc-pascal]Where is the error?

2004-09-01 Thread Olle Raab
04-09-01 09.29, skrev [EMAIL PROTECTED] följande: > > > On Wed, 1 Sep 2004, Marc Santhoff wrote: > >> Am Di, den 31.08.2004 schrieb Michalis Kamburelis um 22:25: >>> When you compile using -S2 parameter you are compiling in objfpc mode. >>> This mode is not exactly compatible with Delphi. In th

Re: [fpc-pascal]Extension of macros exceeds a depth of 16

2004-08-22 Thread Olle Raab
04-08-04 13.39, skrev Olle Raab följande: > 04-07-28 21.42, skrev Alan Mead följande: > >> As a I mentined earlier today in a different thread, I have upgraded >> to 1.9.4 and I appreciate the greater checking. >> >> Most of the new warnings I get are clear but

[fpc-pascal]MacPas.pp added to cvs

2004-08-17 Thread Olle Raab
FYI A new unit is added to CVS, in rtl/inc. It is called macpas.pp and is automatically used for mode macpas, in the same manner as unit objpas is used for mode objpas. It is included in the makefile of all targets, and should be os-independant. If there is problems with it, tell me. Olle __

Re: [fpc-pascal]FPC 1.9.4: fpc.cfg and Linux unit.

2004-08-14 Thread Olle Raab
04-08-14 18.54, skrev Marco van de Voort följande: >> 1) I have one problem with 1.9.4 compared to 1.0.10: >> The Linux unit seems not to be recognized properly; the 'stat' record >> type seems to be undefined, f.ex.: > > 1.9.x has a brand new unix rtl, most calls are now in baseunix/unix and > p

Re: [fpc-pascal]Delphi "9" language features...

2004-08-11 Thread Olle Raab
on I asked on their discussion forum: -- Is the iteration order guarantied, or is it undefined ? In the latter case it allows the compiler to choose an optimized order, or to use several threads. Olle Raab [EMAIL PROTECTED] , 11.08.2004, 11:02am [link] [hide] --

[fpc-pascal]How to use FPC with Xcode

2004-08-10 Thread Olle Raab
://www.freepascal.org/fpcmac.html where you also can download a new 1.9.5 distribution of FPC for Darwin/MacOSX (made from the latest cvs) where the problems of the previous versions has been solved. Olle Raab ___ fpc-pascal maillist - [EMAIL PROTECTED] http

Re: [fpc-pascal]A problem about WATCH.

2004-08-09 Thread Olle Raab
04-08-08 15.03, skrev Zhang Zheng följande: > Hi, > I am a new user of F.P. and I need your help. > ... > 2. > Can't I add a ELSE statement in Case statement? Yes you can use either ELSE or OTHERWISE, both does the same thing. The reason they are two is that fpc should be compatible with diffe

Re: [fpc-pascal]Extension of macros exceeds a depth of 16

2004-08-04 Thread Olle Raab
04-07-28 21.42, skrev Alan Mead följande: > As a I mentined earlier today in a different thread, I have upgraded > to 1.9.4 and I appreciate the greater checking. > > Most of the new warnings I get are clear but one of my units now > reports "Extension of macros exceeds a depth of 16". What does

Re: [fpc-pascal]FPC Version 1.9.4 released.

2004-06-04 Thread Olle Raab
04-06-02 15.39, skrev James Mills följande: > On Wed, Jun 02, 2004 at 03:40:38PM +0200, Michael Van Canneyt wrote: >>> And PIC (Position Independant Code) generation is working too ? >> >> No. See the roadmap: scheduled for 1.9.6 > > Excuse me ignorance. I don't beleive I know what PIC is... Wha

Re: [fpc-pascal]Test Mac OS X installer

2004-05-03 Thread Olle Raab
04-05-03 13.48, skrev Jonas Maebe följande: > > On 3 mei 2004, at 13:43, Olle Raab wrote: > >> But this means you need to have the MacOS X development tools >> installed to >> install fpc ? > > Yes, otherwise make and the gnu assembler are not available. >

[fpc-pascal]Change in macro expressions

2004-05-03 Thread Olle Raab
FYI The compile-time expression facility in fp has been changed. It has been consolidated to conform to same rules as in Pascal, according to precendence (as it should be). Also macro true is defined as <> 0. Before it was > 0. Olle ___ fpc-pascal m

Re: [fpc-pascal]Test Mac OS X installer

2004-05-03 Thread Olle Raab
04-05-03 09.51, skrev Jonas Maebe följande: > > On 3 mei 2004, at 02:03, Olle Raab wrote: > >>> I've created an install package for the Mac OS X version of FPC (of >>> basically a snapshot of today, but it includes the docs). >> >> There is

Re: [fpc-pascal]Test Mac OS X installer

2004-05-02 Thread Olle Raab
04-05-01 22.09, skrev Jonas Maebe följande: > Hello, > > I've created an install package for the Mac OS X version of FPC (of > basically a snapshot of today, but it includes the docs). There is documentation ? If so where is it installed ? > You can find > it on the ftp site in the directory /

Re: [fpc-pascal]Conditional compilation ELSE-IF?

2004-04-13 Thread Olle Raab
04-04-08 15.49, skrev Michalis Kamburelis följande: > Alan Mead wrote: > >> Is >> there a way to detect this at run-time rather than compile time? >> >> -Alan >> > Maybe I don't understand this question, but there's just no need to > detect value for DirectorySeparator at run-time when this is

Re: [fpc-pascal]feature request: enhanced "pos"

2004-03-21 Thread Olle Raab
04-03-21 16.56, skrev Thomas Schatzl följande: > Hello, > x := pos ('Hello', my_str, 6); >>> >>> PosEx() from strutils? >> >> Cant find it in strutils.. > > Just checked the sources again, at least the 1.9.x branch contains a PosEx > method, line 93ff, from today's sources =) Sorry I bot

Re: [fpc-pascal]feature request: enhanced "pos"

2004-03-21 Thread Olle Raab
04-03-06 11.25, skrev Thomas Schatzl följande: >> I would love to see a "pos" function that takes an additional parameter, > being the position in the string where it >should START scanning. e.g.: >> >> my_str = 'Hello, everybody... Hello, world!'; >> >> //123456789012345678901 >> >> x

[fpc-pascal]Note on change in unix/dos.pp and beos/dos.pp

2003-12-03 Thread Olle Raab
N, so this makes GetFAttr conformant with FindFirst). Note that in unix/beos files are regarded as hidden if their name starts with a period (.). Note also that no arribute can be set by SetFAttr on unix/beos. Olle Raab ___ fpc-pascal maillist

[fpc-pascal]Re: FPC on MacOS-X?

2003-12-01 Thread Olle Raab
> > What is the status of FPC on MacOS-X? Thanks. > The code generator (PowerPC) is complete, afaik, althought it is not possible to build a cross compiler due to other work in progress on the compiler. The RTL is based on the unix RTL, which is undergoing a restructure by Marco, so until that

[fpc-pascal]Re: Mac compiler

2003-10-22 Thread Olle Raab
evelopment". Hopefully in a month or two it will be possible for you to create a simple console application or an MPW tool. You need both a machine supported by FPC (e g a PC) and a mac to do development. If you do not have a mac perhaps your friend can do the last sta

Re: [fpc-pascal]Two Questions

2003-08-27 Thread Olle Raab
> > On Sat, 23 Aug 2003, Luis Del Aguila wrote: > >> Two questions >> >> 1.- What is the difference with seekeoln() and eoln() functions? > > The first advances the file position to the end of the line. > The second returns true if the current position is the end of the line. > >> 2.- What is

[fpc-pascal]Re: Macintosh Progress??

2003-06-27 Thread Olle Raab
>> Mark Emerson wrote: >>> How is the progress in the Mac version of FPC? Any projections when it >>> might be ready? Thanks. There have been substantial progress in the powerpc code generator the last months, so that the powerpc version of the fpc compiler can compile itself on linux. >> There

Re: [fpc-pascal]How to obtain runtime type of class object indebugger

2003-02-26 Thread Olle Raab
Thanks for all tips :) However I am interested in how to, from within the IDE debugger (or GDB), "watch" the most specific class of an object without modifying the source code. That is i will see class TClassB even if the object reference is of type TClassA: > type > TClassA = class; > TClas

[fpc-pascal]How to obtain runtime type of class object in debugger ?

2003-02-25 Thread Olle Raab
Is it possible ? In details: Suppose: program Test; type TClassA = class; TClassB = class(TClassA); TClassC = class(TClassA); procedure P( x: TClassA); begin ... end; begin P(TClassB.Create) end. If I watch x inside P in the IDE, i see it is of type TClassA. But I want