1. Does anyone know what CENTER_PARENT is?
- Posted by petelomax Apr 26, 2011
- 1143 views
OK, now I'm really confused. Searches of all iup, OpenEuphoria source, this site, and Google came up blank.
iup/dialog.e contains: public function get_color(integer x = CENTER_PARENT, integer y = CENTER_PARENT, integer r=255, integer g=255, integer b=255)
and it compiles cleanly. So I thought I'll just put ?CENTER_PARENT in there. And for my trouble got cannot resolve reference!
2. Re: Does anyone know what CENTER_PARENT is?
- Posted by petelomax Apr 26, 2011
- 1127 views
It is a bug, in both iup AND OpenEuphoria:
procedure p(integer i=XXXXX_XXXXXXXX) puts(1,"this is p\n") end procedure p(0)
The above compiles cleanly, until you delete the 0, in which case you get an error on line 5 rather than on line 1...
which also means you have the contextual gotcha:
_inc.e is:
constant x = "12345" global procedure p(integer i=length(x)) printf(1,"the length of %s is %d\n",{x,i}) end procedure
_test.exw is:
include _inc.e constant x = "123" p()
which prints "the length of 12345 is 3"
If you remove the second x, it gives better results, but then that implies it is successfully referencing the private x of _inc.e out-of-scope (or the private x of _test.exw out-of-scope, whichever way you want to look at it)...
This could explain a few things...
Pete