[Gambas-user] IDE: signature doubled for Rect._new()

Benoît Minisini gambas at ...1...
Sat Jun 27 16:25:00 CEST 2015


Le 27/06/2015 16:09, Tobias Boege a écrit :
> On Thu, 18 Jun 2015, Beno?t Minisini wrote:
>> Le 18/06/2015 08:29, Tobias Boege a ?crit :
>>> Hi Benoit,
>>>
>>> when I type "New Rect(", the IDE shows the signature of Rect's constructor
>>> doubled (s. attached screenshot). I have gb.qt4 and gb.clipper enabled which
>>> both have a Rect class. Does inheritance of the parent's constructor
>>> arguments cause this? What is the intended outcome if I specify both sets
>>> of arguments? :-) I guess the child's should override the parent's...
>>>
>>> Regards,
>>> Tobi
>>>
>>
>> There is no actual inheritance.
>>
>> It's just that as *.info files has no inheritance feature, both
>> gb.qt4.info and gb.clipper.info (and other components that directly or
>> indirectly automatically load the 'gb.geom' component) have the Rect
>> class description in it.
>>
>> The problem is in the *.info file, not at runtime.
>>
>> The solution would be having an inclusion feature in *.info file, or
>> something that tells the IDE that part of the description comes from
>> another automatically loaded component.
>>
>
> Ah, I see. But the interpreter gets it right... I suppose we can't easily
> exploit the interpreter's intelligence to determine the real signature for
> a symbol in help system?
>

The interpreter does not care about *.info files, it does not need them, 
as he has the classes descriptions in memory.

I will modify the *.info format so that the IDE knows what parts of its 
contents have been included.

At the moment, I'm playing with the joyful world of DBus...

-- 
Benoît Minisini




More information about the User mailing list