From: k. h. <kla...@nl...> - 2006-01-11 10:12:30
|
John Labenski wrote: >On 1/4/06, klaas.holwerda <kho...@xs...> wrote: > > >>I see many *.i files, which have things in it which are not forward >>declared? >>Does genwxbind.lua parse the headers included with %include? >>That would explain it, but i got the feeling it is not doing anything >>with %include, it is just for putting it in the C++ generated code? >> >> > >genwxbind.lua reads all the .i files in an generates a list of all the >classes that were defined. Any class not defined will generate an >error. > > I see, so if i understand well, each call to genwxbind.lua should be one a set of *.i files which are selfcontained. Meaning all class names should be somewhere in there. What if one uses classes from an other module/library, e.g derived classes. The base class is wrapped already (with a seperate call to genwxbind.lua) , the baseclass of the derived class in the new module needs to be know too. So in that case one needs the empty class defenition as a sort of forward declaration right? What i conclude from this is that we need soem sort of *.ih files for module, being a header of know types from another module. Something like filling the list of know types. Maybe we should have a %forward class classname, to achieve the next from the rules file, but from a *.i file. dataTypes["wxCursor"] = AllocDataType("wxCursor", "class", false) Did would make it a bit more moduler. regards, Klaas -- Unclassified |