"local" names

For users of dfns, both novice and expert
Post Reply
User avatar
Phil Last
Posts: 628
Joined: Thu Jun 18, 2009 6:29 pm
Location: Wessex

"local" names

Post by Phil Last »

Always loth to point out oddities and curiosities in case I'm misunderstood as making a complaint.

I can imagine that some accidental carry over from tradfns might have caused it but I just discovered that if I assign a name or even just name it in line zero of a dfn it starts to appear in the autocomplete list within that function. This is most helpful and might even be deliberate and well documented but ten minutes ago is the first I knew of it.

It means I can do
      ⎕ed'f00'
f00←{these required constants←83145 94370 77415
bla bla bla
...
req[and up pops the name "required"!
Result!

But don't get me wrong. I'm not asking to to be required to have a list of semi-colon separated names at the top of every function.

Whether it's a fortunate accident or not please don't take it away.

Dyalog APL/W-64 Version 15.0.29007
Post Reply