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

2008-02-11 Thread Joost van der Sluis
: Skybuck Flying [EMAIL PROTECTED] To: FPC-Pascal users discussions fpc-pascal@lists.freepascal.org Sent: Saturday, February 09, 2008 9:56 PM Subject: Re: [fpc-pascal] Re: Procedures in records not supported :( I must correct myself. The code supplied did not compile in Delphi as well

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

2008-02-10 Thread Felipe Monteiro de Carvalho
On Feb 10, 2008 4:26 AM, Skybuck Flying [EMAIL PROTECTED] wrote: Anyway to put the messages into message-threads ? Use gmail -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

[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] 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) );

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] 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
? These mails make it very hard to follow a discussion ?!?? Bye, Skybuck. - Original Message - From: Skybuck Flying [EMAIL PROTECTED] To: FPC-Pascal users discussions fpc-pascal@lists.freepascal.org Sent: Saturday, February 09, 2008 9:56 PM Subject: Re: [fpc-pascal] Re: Procedures in records

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(

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

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