"local" names

For users of dfns, both novice and expert

"local" names

Postby Phil Last on Sat Jan 13, 2018 8:35 am

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
User avatar
Phil Last
 
Posts: 464
Joined: Thu Jun 18, 2009 6:29 pm

Return to Functional Programming

Who is online

Users browsing this forum: No registered users and 1 guest