Hi Seb, I had a similar issue with second order low pass filters and what you actually want is object orientation. And since we don't have support for this in Jal, we have to emulate this.The way to do this in C is to create a structure with all relevant info in it. But since we don't have stuctures eiher, we need to add each relevant var as a calling parameter. This is a good way in case you call the library only once or twice for each instance, the number of parameters is not too large and there are not many internal call within the library which require many paramters to pass (although you could use 'internal' global vars to cope with this). A pre-defined number of instances (should be a compile time constant) is an alternative if the library is called for the same instance from many points in your code.
In short: if you only have two bits that relate to the object, make them calling parameters. Joep --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jallib" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jallib?hl=en -~----------~----~----~----~------~----~------~--~---
