[Gambas-devel] Function Signature

tommyline at ...674... tommyline at ...674...
Wed Feb 15 23:50:24 CET 2012


Hi Randall,

Some time ago I was adding nurbs and quadrics to glu library, take a look at GLU.c, nurbscurve and nurbssurface, there is a semicolon after each array declaration.

Hope this helps.
Tomek.

----- Original Message -----
From: "Randall Morgan" <rmorgan62 at ...176...>
To: "mailing list for gambas developers" <gambas-devel at lists.sourceforge.net>
Sent: Wednesday, 15 February, 2012 10:12:57 PM
Subject: [Gambas-devel] Function Signature


Hi, 

I am having trouble writing the proper function signature for a function that passes an array of floats. I have look ad the GL class of the OpenGl component as it seems to pass a lot of array as matrices. Something I will be doing shortly with Polynomials. 

I have the function: 

BEGIN_METHOD(GslPoly_Eval, GB_OBJECT array; GB_FLOAT x;) 

I have the following declaration in the class desc struct: 

GB_METHOD("Eval", "f", GSLPOLY_Eval, "(a)Float[](x)f") 

This does not work but if I swap the order of the arguments then it works. What am I missing and do you know of a good text on writing proper signatures for Gambas and/or C. 

Thanks again for your help! 



-- 
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? 

------------------------------------------------------------------------------
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




More information about the Devel mailing list