There are potential issues with #3, as "" are considered $null during evaluation. For example, if you open the Variables section and add %a "" there, //echo -a $len(%a) echoes 0, not 2. There is a way to see what %a really contains ($var(%a,1).value), but such an inconsistency could still cause problems with scripts that handle dynamic input, not to mention that the scripter should be constantly aware of this and take appropriate measures (something that will almost certainly not always happen).

This could be solved in local vars, but in global vars it would require storing additional persistent information (which wouldn't be practical and would come with other issues).


Last edited by qwerty; 13/03/08 07:35 PM.