Spinroot

A forum for Spin users

You are not logged in.

#1 2011-05-23 14:17:37

João Martins
Member
Registered: 2011-05-18
Posts: 4

Functions in Spin

Hi!Can anyone tell me, if dspin ([url]http://www-verimag.imag.fr/~iosif/dspin/[/url]) is still available for version 6 of spin? Is there any alternative to have functions in Spin?

Offline

#2 2011-05-24 01:49:07

spinroot
forum
Registered: 2010-11-18
Posts: 695
Website

Re: Functions in Spin

I don't think dspin is kept up to date.
You can have functions in Spin if you write them in C and then include them inside embedded C constructs:

c_code { f(); }

you'll also have to link to the file with the definition of f() of course, and you have to be careful about how you access global variables -- as shown in chapter 7 of the latest spin book

Offline

Board footer

Powered by FluxBB