[Gambas-devel] About gb.gsl components

Emil Lenngren emil.lenngren at ...176...
Tue Jul 10 01:20:46 CEST 2012


Ok, that's fine. Tell me when you think the specifications are finished so
I can implement it in the jit.

/Emil

2012/7/10 Benoît Minisini <gambas at ...1...>

> Le 10/07/2012 00:50, Emil Lenngren a écrit :
> > Some thoughts:
> >
> > Wouldn't it be better to be more generalized with all those operators?
> > I mean now they have to be native functions in a special interface.
> > Inheriting and virtual calls and other OO stuff doesn't seem to work
> > with them.
> >
> > Why not simply see if an object has the method "_add" when you try to
> > add an object with something? Then you are not restricted to native
> > classes, but can use the "standard" principles and calling conventions
> > and inheritance rules. Of course this will be slower than directly
> > calling the correct C function through an interface but it won't be
> > slower than a normal gambas call.
> >
> > /Emil
> >
>
> Mainly because of speed.
>
> The '_operator' interface is a bit complex, but it is faster to call it
> than using the special methods.
>
> And I don't want to allow overriding operators in any class like in C++.
> It leads to nightmare-code.
>
> --
> Benoît Minisini
>
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Gambas-devel mailing list
> Gambas-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/devel/attachments/20120710/0793c204/attachment.html>


More information about the Devel mailing list