Re: [fpc-pascal] Virtual Constants

2013-03-03 Thread Joao Morais
On Fri, Mar 1, 2013 at 5:31 PM, Daniel Gaspary wrote: > > Is possible to have a Class constant with different values in class > descendants ? Afaik no, but you can override class virtual methods which might give you the correct value: TA = class protected class function value: integer; v

[fpc-pascal] Intercept call to a property, method or attribute

2013-03-03 Thread Joao Morais
Hello list. I need to implement lazy loading for an OPF so I need to intercept the read call to a property. Lets take the following classes: TClient = class private FName: string; published property Name: string read FName write FName; end; TInvoice = class pri

Re: [fpc-pascal] Intercept call to a property, method or attribute

2013-03-03 Thread Sven Barth
On 03.03.2013 18:03, Joao Morais wrote: Is there some compiler magic I am missing? Nope, you don't miss anything. The only thing which *could* help you is when the new RTTI unit is implemented which contains a TVirtualMethodInterceptor which allows you to - as its name suggests - intercept a

Re: [fpc-pascal] Intercept call to a property, method or attribute

2013-03-03 Thread Joao Morais
On Sun, Mar 3, 2013 at 2:16 PM, Sven Barth wrote: > On 03.03.2013 18:03, Joao Morais wrote: >> >> Is there some compiler magic I am missing? > > Nope, you don't miss anything. The only thing which *could* help you is when > the new RTTI unit is implemented which contains a TVirtualMethodIntercepto

Re: [fpc-pascal] Intercept call to a property, method or attribute

2013-03-03 Thread Sven Barth
On 03.03.2013 18:20, Joao Morais wrote: On Sun, Mar 3, 2013 at 2:16 PM, Sven Barth wrote: On 03.03.2013 18:03, Joao Morais wrote: Is there some compiler magic I am missing? Nope, you don't miss anything. The only thing which *could* help you is when the new RTTI unit is implemented which co

Re: [fpc-pascal] Virtual Constants

2013-03-03 Thread Daniel Gaspary
On Sun, Mar 3, 2013 at 11:13 AM, Joao Morais wrote: > Afaik no, but you can override class virtual methods which might give > you the correct value: Exactly what I was trying to avoid. :) ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http:

[fpc-pascal] Annual inform

2013-03-03 Thread Rafael Angel Campos Vargas
I don't speak English sorry. Thank's a lot for your compiler for Go32v2. This year, FreeRAY2012 has seventeen 3D objects. My personal project LibreN3D is incompatible with POVRay, but i can sincronize. In this temporal link http://www.filefactory.com/file/576eltftjisf/n/FreeRay_2012_y_CAFE

Re: [fpc-pascal] Compiling arm-embedded fpc

2013-03-03 Thread Koenraad Lelong
Op 14-02-13 20:08, Michael Ring schreef: I might have found a hack to solve your linking problem for arm-embedded on linux, unfortunately I am not an expert on gnu ld, but perhaps this here gives a hint to somebody that knows how to properly solve your problem: First, create a script names arm-e

Re: [fpc-pascal] Object pascal language compatiblity - was: Does FPC 2.8.0 can actually still be called Pascal ?

2013-03-03 Thread Dimitri Smits
- Oorspronkelijk e-mail - > Van: "Florian Klämpfl" > Aan: "FPC-Pascal users discussions" > Verzonden: Vrijdag 1 maart 2013 18:13:42 > Onderwerp: Re: [fpc-pascal] Object pascal language compatiblity - was: Does > FPC 2.8.0 can actually still be called > Pascal ? > > Am 01.03.2013 11:0

[fpc-pascal] Bootstrap binaries

2013-03-03 Thread Joao Morais
Hello list. How ftp://ftp.freepascal.org/pub/fpc/dist/2.6.2/bootstrap like lists are built? I missed at least i386-linux and i386-win32 binaries. Just to know how I will update my drafts. Joao Morais ___ fpc-pascal maillist - fpc-pascal@lists.freepasca

[fpc-pascal] Unicode: congratulations

2013-03-03 Thread Reinier Olislagers
Just wanted to post something nice between the ideas for improvement and bug reports Noticed via the commits and the fpc-devel list that the devs are adding more Unicode support to FPC trunk. (See e.g. http://www.mail-archive.com/fpc-devel@lists.freepascal.org/msg28644.html) Congratulations & hopi

Re: [fpc-pascal] Virtual Constants

2013-03-03 Thread Adrian Veith
Am 01.03.2013 21:31, schrieb Daniel Gaspary: The idea is strange. But here it is: Is possible to have a Class constant with different values in class descendants ? Would be something like that: TA = class const c1: integer; virtual; class function GetC1: integer; //returns c