Re: [fpc-pascal] The new Delphi 2010 RTTI

2010-12-22 Thread Thierry Coq
Hello, I've started looking into Delphi 2010 RTTI scheme. For example, superobject uses it. Delphi 2010 declares a whole new API for RTTI. Would it be possible to reproduce the interface of this API and implement it using the existing RTTI system in FPC? Would it be legal? I'm investigating

Re: [fpc-pascal] The new Delphi 2010 RTTI

2010-12-11 Thread Thierry Coq
On 11/12/2010 11:53, Michael Van Canneyt wrote: ... If you want to look into it, I think Paul can help on the compiler end, and I'm willing to help with the extra RTL functionality. How can I help? I know a lot how the Delphi RTTI works, but I don't have a Delphi 2010 version (too expensive)!

[fpc-pascal] The new Delphi 2010 RTTI

2010-12-10 Thread Thierry Coq
Hello, Delphi 2010 has changed the RTTI mechanism, and it is said to be much more usable than the previous one. (see here for example: http://www.malcolmgroves.com/blog/?p=476) Some interesting tools are using this new approach, like DelphiOnRails: http://code.google.com/p/delphionrails/

[fpc-pascal] Is FPC implementing part or most of Delphi 2010's new RTTI?

2010-12-09 Thread Thierry Coq
Dear all, I understand Delphi 2010 has changed its RTTI mechanism, and it is said to be much more usable than the previous one. (see here for example: http://www.malcolmgroves.com/blog/?p=476) What are the FPC team's plans about improving the RTTI? Any similar or as easy to use/powerful? For

Re: [fpc-pascal] ZLIB

2010-11-08 Thread Thierry Coq
On 08/11/2010 13:07, Rainer Stratmann wrote: ... http://demo.klimaregelung.de For showing measuring values I need png support. ___ Interesting demo. Do you have it in English? Do you intend to have multi-language support?

Re: [fpc-pascal] TPLY

2010-10-29 Thread Thierry Coq
Brian, thanks for the diff, I'll take it into account and publish an update. On 28/10/2010 18:50, Brian Winfrey wrote: ... The changes I made in this diff were simply to get it to compile. Subsequently I renamed all files and folders to lowercase, converted spaces to underscores and added a

Re: [fpc-pascal] Re: Re: TPLY

2010-10-29 Thread Thierry Coq
I second that. ... I recommend http://www-old.oberon.ethz.ch/WirthPubl/CBEAll.pdf ... also Wirth's book on Project Oberon, where the compiler design is explained, and its purpose in the whole project: http://www.oberon.ethz.ch/WirthPubl/ProjectOberon.pdf in the physical world: ISBN

Re: [fpc-pascal] TPLY

2010-10-28 Thread Thierry Coq
Hello Brian, Yes, please send the diff file, so I can look at it. Which platform (Windows, Linux, FPC) are you using? Another approach would be to look at (and reverse engineer) the byte code. If it's not obfuscated, it might even be easier to parse and port than the native Java. On

Re: [fpc-pascal] TPLY

2010-10-27 Thread Thierry Coq
Hello Brian, there is a port to Lazarus here: http://www.tcoq.org/ with some examples. I can help you if needed. The documentation is quite complete. Translating the whole Java language would be very difficult, but translating only the structure could be done. You would need to write a

Re: [fpc-pascal] Property Tags

2010-08-03 Thread Thierry Coq
Hello, On 02/08/2010 22:10, Jorge Aldo G. de F. Junior wrote: and what about property tags and dynamic dispatch ? this would solve a lot of problems of my project... (i'm reading about multiple inheritance and looks like it creates more problems than it solves...) ... Multiple

Re: [fpc-pascal] Extending an enumeration

2010-07-21 Thread Thierry Coq
On 18/07/2010 20:56, Mark Morgan Lloyd wrote: ... Yes, I was thinking that. However if the basic class was say a round-robin scheduler with phases rrQuiescent and rrInitialised and the descendant was say an HP comms protocol handler with additional phases hpReceivingPadding, hpReceivedSync and

Re: [fpc-pascal] class object

2010-05-11 Thread Thierry Coq
Dear Dennis, See my comment below: spir ☣ wrote: Hello, ... Second, theses texts seem to imply that classes only have drawbacks, compared to object types ;-) The reference does not compare the two models further, I guess; so why bother with a heavier system? Why did Delphi creators design

Re: [fpc-pascal] about dynamic array -- p

2010-05-08 Thread Thierry Coq
Denis, you need to get up to speed on types, since this is one of the fundamental (and better) differences of pascal. You'll find the typing system actually helps you a lot. FYI, class is one of the possible types. Basically in Pascal, some types are basic: integer, real, some types are

Re: [fpc-pascal] identifier scope problem

2010-05-04 Thread Thierry Coq
try prefixing by the unit name: procedure tcls.method(x,y: tt); begin if a.equals(x,y) then ... end; Thierry leledumbo wrote: consider the following code snippet: code unit a; interface type tt = ... tcls = class procedure method(x,y: tt); end; function equals(x,y: tt):

Re: [fpc-pascal] pointer magic

2010-04-27 Thread Thierry Coq
... In addition, when starting to use Pascal, don't use pointers, and don't invent linked lists, it's been done so many times. Go look up the source code in contnrs.pp to understand lists and containers already available in FPC. Most programming can be done without untyped pointers. Best

Re: [fpc-pascal] State of FPC docs.rant

2010-04-23 Thread Thierry Coq
Joseph, Vincent, +1 Add me to the list here. I also offer to help, especially for writing UML diagrams to help people visualize, including use cases, class diagrams and scenarios. Every component I publish has unit testing and UML diagrams, if only a few. Thierry

Re: [fpc-pascal] Free Pascal 2.4.0 released

2010-01-01 Thread Thierry Coq
Marco, Happy New Year too, and thanks to all the team for this great work! The betas were exciting and this version will be undoubtedly great too! Thierry Marco van de Voort wrote: Happy New Year! As a special present, We have placed a new major release of the Free Pascal Compiler, version

[fpc-pascal] How does inline work?

2009-11-22 Thread Thierry Coq
Hello, I'm trying to use inline to remove unnecessary debugging code, such as the following code, with FPC 2.3.1 on Windows, when compiling for production. However when I compile the code, at O1 optimisation level (my default), the call to DebugInfo is still present in the generated

Re: [fpc-pascal] How does inline work?

2009-11-22 Thread Thierry Coq
Jonas Maebe wrote: On 22 Nov 2009, at 10:10, Thierry Coq wrote: I'm trying to use inline to remove unnecessary debugging code, such as the following code, with FPC 2.3.1 on Windows, when compiling for production. However when I compile the code, at O1 optimisation level (my default

Re: [fpc-pascal] How does inline work?

2009-11-22 Thread Thierry Coq
regards, Thierry Thierry Coq wrote: Jonas Maebe wrote: On 22 Nov 2009, at 10:10, Thierry Coq wrote: I'm trying to use inline to remove unnecessary debugging code, such as the following code, with FPC 2.3.1 on Windows, when compiling for production. However when I compile the code, at O1