On Sat 29 May 2010, spir ☣ wrote:
> I cannot do that. C0 (and all classes) instances need a text method. I also
> cannot have 2 methods (one static, one virtual) with different names. 

So make a virtual method called text. Don't use a static method at all.

In my example I was trying to demonstrate the difference between static methods 
and virtual methods. I was not trying to suggest that you change your method 
names, or use both static and virtual methods.

I can't be sure without seeing your code, but based on reading your messages 
three times, it appears to me that you are using static methods (i.e. without 
the virtual and override keywords) and expecting them to behave like virtual 
methods.

Cheers & good luck,
David

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to