Coen
Schalkwijk Software Engineer |
||
coen.schalkwijk@rtl.nl | ||
coen@rtlinteractief.nl | ||
+31 (0)35 671 8915 |
Another problem is that 'string s;' or 'string s=0;' evaluate to 'int' when using %t and 'zero_type()' doesn't help either. Not a problem for pike but for any other language using the generated XML.As a workaround, have you considered using typeof()/_typeof() ? ----8<----8<----8<----string s; string t=0; string u=""; string v="foo"; zero_type(s);(1) Result: 0zero_type(t);(2) Result: 0zero_type(u);(3) Result: 0zero_type(v);(4) Result: 0typeof(s);(5) Result: stringtypeof(t);(6) Result: stringtypeof(u);(7) Result: stringtypeof(v);(8) Result: string_typeof(s);(9) Result: zero_typeof(t);(10) Result: zero_typeof(u);(11) Result: string_typeof(v);(12) Result: string ---->8---->8---->8----