Re: routine_id() is not working
- Posted by mattlewis (admin) Apr 10, 2013
- 1807 views
useless_ said...
See: http://openeuphoria.org/pastey/208.wc
1) As is, routine_id() always returns -1
2) routine_id() is in os.e , but if you delete the include...os.e line, the routine_id() still "works", but always returns 1
3) If you remove either of the top two include lines, the routine_id() will work properly.
What's up with that?
You're mixing the 3.1 standard library with 4.0. There is a sleep() in misc.e and in std/os.e. Both file.e and database.e include misc.e, and of course, all symbols are global, Therefore, routine_id cannot resolve a unique sleep() when std/os.e is included.
Matt

