Re: define_c_func/proc question
- Posted by Robert Craig <rds at RapidEuphoria.com> Dec 26, 2005
- 661 views
CChris wrote: > If define_c_func() is called several times for the same {dll,name} or > {{},address} pair, will the same routine_id be returned? No, you'll get a different routine id each time. In contrast, routine_id() will give you the same id each time for the same Euphoria routine. In the case of Euphoria routines, it was easy to check if a routine already had an id assigned to it. For most programs, it doesn't matter, because the routine id is only derived once. > RC: could you include this precision in the docs? It's useful to know > when you want a custom message to call an user-supplied callback to pass the > > results back. OK. I'm always a bit leary of documenting minor details like this, since it more or less commits me to never changing how it works in the future, but I guess I can commit to this. > Also, could you consider extending allocate() and free() to sequences? The > extended routines would return or free a sequence of addresses. I really don't see much demand for this. It would be easy for you to make your own routines for this, or just write a simple for-loop. Regards, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com