Re: [fpc-pascal] Re: Procedures in records not supported :(

2008-02-09 Thread John
Skybuck Flying wrote: Outlook express in combination with hotmail. I see one big long list of messages all mixed etc. Anyway to put the messages into message-threads ? Bye, Skybuck. Sorry, in that environment, no idea. In Thunderbird it is a sorting option. Perhaps look in that area. I th

Re: [fpc-pascal] Re: Procedures in records not supported :(

2008-02-09 Thread Skybuck Flying
Outlook express in combination with hotmail. I see one big long list of messages all mixed etc. Anyway to put the messages into message-threads ? Bye, Skybuck. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/ma

Re: [fpc-pascal] Re: Procedures in records not supported :(

2008-02-09 Thread John
Skybuck Flying wrote: Not quite buster ! // *** Demo problem begin *** type TmyRecord = record A,B,C,D,E,F : integer; end; TmyObject = object A,B,C,D,E,F : integer; procedure Test; end; procedure TmyObject.Test; begin A := 5; end; begin writeln( SizeOf(TmyRecord) ); writeln( SizeOf(Tm

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

[fpc-pascal] Can you knock my socks off ? Can you mimic Skybuck's/Delphi's Major Breakthrough for code path and memory structure selection ?

2008-02-09 Thread Skybuck Flying
Hello, This usenet posting discussess what I consider to be a major breakthrough for me and Delphi coding in general. It explains what I need and want to do and how I solved it. So instead of typing the whole idea again I simply copy and paste what I posted back then on this mailing list plu

[fpc-pascal] Properties in records not supported ! :(

2008-02-09 Thread Skybuck Flying
Hello, Delphi 2007 has another pretty handy new feature: "Properties in records". For example it's even possible to have index properties. Some that I could write code using the record like: myRecord.SomeField[SomeIndex] := 12345; then the property methods can place the value 12345 anywhere

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] static record (class?) procedures in records not supported :(, better example

2008-02-09 Thread Marco van de Voort
> > Delphi allows the following code to be compiled and run: There has been a thread about this subject (records with procedures) not one week ago, with as subject "Turbo Pascal and Object Pascal ways of OOP". ___ fpc-pascal maillist - fpc-pascal@lis

Re: [fpc-pascal] Re: Procedures in records not supported :(

2008-02-09 Thread Skybuck Flying
Interesting. I posted the new example before I posted the message below. No nobody will understand which example was the correct one. A major drawback of using mailing lists ? Is there anyway I can get some kind of threading going for these e-mails ? Why not start a usenet server ? These mai

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] Re: Procedures in records not supported :( Object variable required but might work ?

2008-02-09 Thread Skybuck Flying
Hello, This fpc example seems to do more or less the same as the Delphi static class/record procedure example. Only extra requirement is to declare a object instance variable and use that to call the test routine. Less ideal. type TmyRecord = record A,B,C,D,E,F : integer; end; TmyObject

Re: [fpc-pascal] Re: Procedures in records not supported :(

2008-02-09 Thread Skybuck Flying
I must correct myself. The code supplied did not compile in Delphi as well. However a similiar design is possible in Delphi so I supplied a new example in a new posting... Anyway I will further explore what it takes to make the object work in fpc ;) Bye, Skybuck. __

Re: [fpc-pascal] static record (class?) procedures in records not supported :(, better example

2008-02-09 Thread Skybuck Flying
Hello, Delphi allows the following code to be compiled and run: // *** Begin of Demo *** program Project1; {$APPTYPE CONSOLE} uses SysUtils, Unit1 in 'Unit1.pas'; type TmyRecord = record A,B,C,D,E,F : integer; end; TmyObject = record A,B,C,D,E,F : integer; class procedure Test; stati

Re: [fpc-pascal] Re: Procedures in records not supported :(

2008-02-09 Thread Skybuck Flying
Not quite buster ! // *** Demo problem begin *** type TmyRecord = record A,B,C,D,E,F : integer; end; TmyObject = object A,B,C,D,E,F : integer; procedure Test; end; procedure TmyObject.Test; begin A := 5; end; begin writeln( SizeOf(TmyRecord) ); writeln( SizeOf(TmyObject) ); TmyObject.

[fpc-pascal] Re: Procedures in records not supported :(

2008-02-09 Thread Milan Marusinec
Skybuck Flying wrote: My most recent code uses the new feature "procedures in records". It seems fpc 2.2.0 does not support procedures in records. I was hoping fpc 2.2.0 could replace Delphi 2007 compiler because Delphi 2007 compiler is malfunctioning... I really like this new feature and I

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

2008-02-09 Thread Skybuck Flying
Nope. More complex units did not compile as well. Example of slightly more complex unit: // *** begin of code *** unit lul; interface type Tpenis = class private a : integer; public end; implementation end. // *** end of code *** Your reasoning doesn't make any sense anyway. It's perf

[fpc-pascal] Procedures in records not supported :(

2008-02-09 Thread Skybuck Flying
Hello, Borland pulled a fast one on me ;) My most recent code uses the new feature "procedures in records". It seems fpc 2.2.0 does not support procedures in records. I was hoping fpc 2.2.0 could replace Delphi 2007 compiler because Delphi 2007 compiler is malfunctioning... I really like th

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

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

2008-02-09 Thread Skybuck Flying
Solved. fpc lul.pas -Mdelphi Works. fpc lul.pas -Mdelphi Free Pascal Compiler version 2.2.0 [2007/09/09] for i386 Copyright (c) 1993-2007 by Florian Klaempfl Target OS: Win32 for i386 Compiling lul.pas 15 lines compiled, 0.1 sec Kinda strange, fpc does not support class ? Wacky/weird. Oh w

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

Re: [fpc-pascal] bluetooth wiimote linux

2008-02-09 Thread Mattias Gaertner
On Sat, 9 Feb 2008 00:01:24 +0100 Mattias Gaertner <[EMAIL PROTECTED]> wrote: > Has anybody done something with FPC and bluetooth and especially > the wiimote under linux and can give me some hints? What about other platforms? Are the bluetooth units in the FPC sources for windows for accessing