Re: Rob: Q: Constant Scope
- Posted by Matt Lewis <matthewwalkerlewis at gmail.com> Apr 20, 2005
- 528 views
Vincent wrote: > > ---- > Another question... Is there anyway I can use global variables in > Eu2C translated/compiled DLLs, being able to use define_c_var()? > If not, could you consider, adding support for it in the next > release? I tried making an example but it didnt work, maybe I did > somthing wrong? You could do this, but this probably only makes sense for integers, and you'd have to be careful to keep them at 31 bits, because Euphoria would interpret bigger things as either atoms or sequences. You can take a look at my contribution for passing 32-bit integers to a compiled euphoria routine for some additional insight into what sort of things would be involved. Matt Lewis