[fpc-devel] object as vararg

Jonas Maebe jonas.maebe at elis.ugent.be
Sun Mar 19 17:13:27 CET 2006


On 19 Mar 2006, at 14:54, Vincent Snijders wrote:

>> I don't know, to be honest. C doesn't know objects, so you can't   
>> compare with that. C++ doesn't know Delphi-style objects either,  
>> its  object model is more like TP's. And a pointer to a C++ or TP  
>> object  is obviously just a pointer like any other, and you can  
>> pass pointers  to varargs. It is trivial to add support for Delphi- 
>> style objects  again (since converting those to a pointer is no  
>> problem).
>
> We added a pointer typecast to our call to gtk_list_store_set. This  
> code compiles (didn't test running it).

The end result should be the same as it was in the past.

> As far as I am concerned this is good enough, so no further need to  
> change the compiler.

Ok.


Jonas



More information about the fpc-devel mailing list