[Gambas-user] External Variables

Jussi Lahtinen jussi.lahtinen at ...626...
Mon Jun 27 16:18:41 CEST 2011


If you use Gambas 3, look at GSLSpline example.
It uses external object, but you can use external variables in similar way.

gsl_interp_cspline = Pointer@(System.GetExternSymbol("libgsl:0",
"gsl_interp_cspline"))

Jussi


On Mon, Jun 27, 2011 at 13:12, tobias <tobiasboe1 at ...20...> wrote:

> hi,
>
> i have a component that should use a variable (or class) which is
> declared globally in a project. i know that this isn't good practice but
> i just want to know if it is possible to tell the compiler not to look
> for this variable and that it can be resolved when the component loaded.
> the only thing i found is a way to do it with a function:
> EXTERN function() IN "lib"
>
> regards,
> tobi
>
>
> ------------------------------------------------------------------------------
> All of the data generated in your IT infrastructure is seriously valuable.
> Why? It contains a definitive record of application performance, security
> threats, fraudulent activity, and more. Splunk takes this data and makes
> sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-d2d-c2
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



More information about the User mailing list