Chris Bruce
2009-06-11 09:57:36 UTC
Hi there,
I came across some unexpected behaviour when I accidentally localised the
left argument to a function - when I passed a left argument to the
ambivalent function it could not "see" it and so set about the default
monadic behaviour. The localisation on the function header seemed to be
shadowing the left argument.
The Language Reference Manual p347 indicates that arguments are local to the
function. My feeling is that it shouldn't be possible to localise them
(again!), or if you can (by accident) then the arguments shouldn't be
shadowed by the extra localisation. What say you?
(Using SL14 on WinXP Pro SP2).
Chris Bruce
I came across some unexpected behaviour when I accidentally localised the
left argument to a function - when I passed a left argument to the
ambivalent function it could not "see" it and so set about the default
monadic behaviour. The localisation on the function header seemed to be
shadowing the left argument.
The Language Reference Manual p347 indicates that arguments are local to the
function. My feeling is that it shouldn't be possible to localise them
(again!), or if you can (by accident) then the arguments shouldn't be
shadowed by the extra localisation. What say you?
(Using SL14 on WinXP Pro SP2).
Chris Bruce