[Gambas-devel] Needed Info

Randall Morgan rmorgan62 at ...176...
Sat Feb 11 22:56:23 CET 2012


Hi Benoit,

I do understand that some of the function are provided by Gambas natively.
I included them in an effort to keep the GSL class as complete as possible.
Someone experienced with using GSL from Ada or C/C++ may expect those
function to be included. Therefore, I decided to include them. Also, the
GSL library provides "known" levels of accuracy in function like Pow and
ArcTan, which may be expected by the component user.



2012/2/11 Benoît Minisini <gambas at ...1...>

> Le 11/02/2012 02:01, Randall Morgan a écrit :
> > Hi Benoit,
> >
> > Can you expand on the purpose of the following:
> >
> > /* The following symbols must be declared with EXPORT in a component:
> >     - GB
> >     - GB_INIT()
> >     - GB_EXIT()
> > */
> >
> > I have started the documentation as promised though I still have a lot
> > to learn. But while waiting for replies from you I figured I could at
> > least start on the documentation for what i do know... But there is
> > nothing written on these items except that they must be declared extern.
> >
> > My guess is: GB is the master Gamabs object.
> >
> > GB_INIT() is used for initialization of a class, something like a
> > constructor?
> >
> > GB_EXIT() is used to shut down the class cleanly like a destructor?
> >
> > Any confirmation or additional information would be very helpful.
> >
> > Thanks
> >
>
> GB_INIT() and GB_EXIT() are two mandatory exported functions:
> - GB_INIT() is called by the interpreter to initialize the component.
> - GB_EXIT() is called by the interpreter to uninitialize the component.
>
> GB is a structure (GB_INTERFACE) that is filled by the interpreter with
> the interpreter API when the component is loaded. So the GB symbol must
> be exported too.
>
> Look at the source of any component to see how they are declared.
>
> Another unrelated point now: as soon as I find time, I will tell you
> what to remove and clean-up in your component. Some GSL functions are
> not useful in Gambas (mainly because they already exist in the
> interpreter), so they should not be implemented in the component.
>
> Regards,
>
> --
> Benoît Minisini
>
>
> ------------------------------------------------------------------------------
> Virtualization & Cloud Management Using Capacity Planning
> Cloud computing makes use of virtualization - but cloud computing
> also focuses on allowing computing to be delivered as a service.
> http://www.accelacomm.com/jaw/sfnl/114/51521223/
> _______________________________________________
> Gambas-devel mailing list
> Gambas-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-devel
>



-- 
If you ask me if it can be done. The answer is YES, it can always be done.
The correct questions however are... What will it cost, and how long will
it take?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/devel/attachments/20120211/31c4c9b3/attachment.html>


More information about the Devel mailing list