[Gambas-devel] Function Signature

Randall Morgan rmorgan62 at ...176...
Thu Feb 16 00:21:14 CET 2012


Thank you that info was a great help!


On Wed, Feb 15, 2012 at 3:08 PM, Randall Morgan <rmorgan62 at ...176...> wrote:

> Thanks! I'll look at that now.
>
>
>
>
> On Wed, Feb 15, 2012 at 2:50 PM, <tommyline at ...674...> wrote:
>
>> 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
>>
>>
>> ------------------------------------------------------------------------------
>> 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?
>



-- 
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/20120215/2e59b087/attachment.html>


More information about the Devel mailing list