Discussion:
Odd Localisation Behaviour?
(too old to reply)
Chris Bruce
2009-06-11 09:57:36 UTC
Permalink
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
David Liebtag
2009-06-11 17:38:41 UTC
Permalink
Before saving your function, hit F7 which will removed names from the list
of locals that are either unused or the names of arguments or the result.

IBM APL Products and Services
David Liebtag
Chris Bruce
2009-06-11 19:25:17 UTC
Permalink
Job done! Many thanks David.
Post by David Liebtag
Before saving your function, hit F7 which will removed names from the list
of locals that are either unused or the names of arguments or the result.
IBM APL Products and Services
David Liebtag
Loading...