Re: [fpc-pascal] lul.pas does not compile with fpc 2.2.0

2008-02-10 Thread Joao Morais
Peter Vreman wrote: Skybuck Flying wrote: Doesn't make much sense to me at least. Who still codes in 16 bit or turbo pascal ? 64 KB programs ? Terrible limitations. I am glad those days are dead/gone/over. It was discussed already a couple of years ago to make objfpc the default compile m

Re: [fpc-pascal] lul.pas does not compile with fpc 2.2.0

2008-02-10 Thread Marco van de Voort
> Doesn't make much sense to me at least. > > Who still codes in 16 bit or turbo pascal ? A few. > 64 KB programs ? > Terrible limitations. Agreed, but the FPC mode doesn't have these limitations. It is a TP dialect compability, but otherwise a full 32/64 bit mode. The compiler itself is writ

Re: [fpc-pascal] lul.pas does not compile with fpc 2.2.0

2008-02-10 Thread Peter Vreman
Skybuck Flying wrote: Doesn't make much sense to me at least. Who still codes in 16 bit or turbo pascal ? 64 KB programs ? Terrible limitations. I am glad those days are dead/gone/over. It was discussed already a couple of years ago to make objfpc the default compile mode. But it breaks to

Re: [fpc-pascal] lul.pas does not compile with fpc 2.2.0

2008-02-09 Thread Giuliano Colla
Skybuck Flying ha scritto: Doesn't make much sense to me at least. Who still codes in 16 bit or turbo pascal ? 64 KB programs ? Terrible limitations. I am glad those days are dead/gone/over. If you want Delphi mode, you just put {$Mode Delphi} at the beginning of your unit, among the other

Re: [fpc-pascal] lul.pas does not compile with fpc 2.2.0

2008-02-09 Thread Skybuck Flying
Doesn't make much sense to me at least. Who still codes in 16 bit or turbo pascal ? 64 KB programs ? Terrible limitations. I am glad those days are dead/gone/over. Bye, Skybuck. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lis

Re: [fpc-pascal] lul.pas does not compile with fpc 2.2.0

2008-02-09 Thread Vincent Snijders
Skybuck Flying schreef: Yeah, well, what exactly is the difference ? The guide doesn't explain. I assume free pascal does support the "class" keyword ? The default compiler mode is {$mode fpc} which is more TP compatible. Turbo Pascal did not support the class keyword either. Vincent

Re: [fpc-pascal] lul.pas does not compile with fpc 2.2.0

2008-02-09 Thread Skybuck Flying
Yeah, well, what exactly is the difference ? The guide doesn't explain. I assume free pascal does support the "class" keyword ? Bye, Skybuck. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc

Re: [fpc-pascal] lul.pas does not compile with fpc 2.2.0

2008-02-09 Thread Skybuck Flying
It's perfectly fine to declare a empty class like in my example. Bye, Skybuck. - Original Message - From: "ik" <[EMAIL PROTECTED]> To: "FPC-Pascal users discussions" Sent: Saturday, February 09, 2008 9:04 PM Subject: Re: [fpc-pascal] lul.pas does not compil

Re: [fpc-pascal] lul.pas does not compile with fpc 2.2.0

2008-02-09 Thread Mattias Gaertner
On Sat, 9 Feb 2008 22:04:33 +0200 ik <[EMAIL PROTECTED]> wrote: > It's simple, you declared a prototype of a class, so you do not need > to declare the entire structure of the class. > > type > Tpenis = class; > > and that's it No. He probably forgot to enable Delphi mode. See here http://wik

Re: [fpc-pascal] lul.pas does not compile with fpc 2.2.0

2008-02-09 Thread ik
It's simple, you declared a prototype of a class, so you do not need to declare the entire structure of the class. type Tpenis = class; and that's it Ido On Feb 9, 2008 10:04 PM, Skybuck Flying <[EMAIL PROTECTED]> wrote: > Hi, > > The following simple and valid Delphi code does not compile wi

[fpc-pascal] lul.pas does not compile with fpc 2.2.0

2008-02-09 Thread Skybuck Flying
Hi, The following simple and valid Delphi code does not compile with command: fpc lul.pas // *** Begin of Code *** unit lul; interface type Tpenis = class private public end; implementation end. // *** End of Code *** // *** Begin of Output *** fpc lul.pas Free Pascal Compiler versio