:Section :EndSection in a :For loop
Forum rules
This forum is for discussing APL-related issues. If you think that the subject is off-topic, then the Chat forum is probably a better place for your thoughts !
This forum is for discussing APL-related issues. If you think that the subject is off-topic, then the Chat forum is probably a better place for your thoughts !
5 posts
• Page 1 of 1
:Section :EndSection in a :For loop
I cant see why one cannot put a
EG
Is there a reason for this behavior, or is it a bug?
- Code: Select all
:Section .... :EndSection
- Code: Select all
:For....:EndFor
EG
- Code: Select all
∇Foo∇
∇ Foo;i
[1]
[2] :For i :In 1 2
[3]
[4] ⍝ :Section
[5] i
[6] ⍝ :EndSection
[7]
[8] :EndFor
∇
Foo
1
2
∇Foo∇
∇ Foo;i
[1]
[2] :For i :In 1 2
[3]
[4] :Section
[5] i
[6] :EndSection
[7]
[8] :EndFor
∇
Foo
SYNTAX ERROR
Foo[2] :For i :In 1 2
∧
Is there a reason for this behavior, or is it a bug?
Ray Cannon
Please excuse any smelling pisstakes.
Please excuse any smelling pisstakes.
-
ray - Posts: 221
- Joined: Wed Feb 24, 2010 12:24 am
- Location: Blackwater, Camberley. UK
Re: :Section :EndSection in a :For loop
On the Mac's most current version, it seems to work...
Perhaps it's a premium feature.
Perhaps it's a premium feature.
- Code: Select all
∇Foo[⎕]∇
[0] Foo;i
[1] :For i :In 1 2
[2] :Section
[3] i
[4] :EndSection
[5] :EndFor
Foo
1
2
- petermsiegel
- Posts: 143
- Joined: Thu Nov 11, 2010 11:04 pm
Re: :Section :EndSection in a :For loop
Which version of Dyalog APL are you using Ray ?
The behaviour seems to have changed between 17.0 and 17.1 - you cannot put a :section in a :for loop in 17.0, but you can in 17.1 and later.
The Dyalog interpreter is the same for all users, and is built on all platforms from the same source. We may occasionally add an I-beam for a customer, either as a feature enhancement, or to aid debugging, but most of those usually end up as standard features in future versions. So no, no premium features at play here !
The behaviour seems to have changed between 17.0 and 17.1 - you cannot put a :section in a :for loop in 17.0, but you can in 17.1 and later.
The Dyalog interpreter is the same for all users, and is built on all platforms from the same source. We may occasionally add an I-beam for a customer, either as a feature enhancement, or to aid debugging, but most of those usually end up as standard features in future versions. So no, no premium features at play here !
-
AndyS|Dyalog - Posts: 257
- Joined: Tue May 12, 2009 6:06 pm
Re: :Section :EndSection in a :For loop
Thanks Andy, I'm still using version 17.0, so I am now happy.
Seasons Greeting to you all.
Seasons Greeting to you all.
Ray Cannon
Please excuse any smelling pisstakes.
Please excuse any smelling pisstakes.
-
ray - Posts: 221
- Joined: Wed Feb 24, 2010 12:24 am
- Location: Blackwater, Camberley. UK
Re: :Section :EndSection in a :For loop
P.S.
:Section is now working fine for me in a :for loop under Dyalog 18.0.
Many thanks, and a Happy New Year
:Section is now working fine for me in a :for loop under Dyalog 18.0.
Many thanks, and a Happy New Year
Ray Cannon
Please excuse any smelling pisstakes.
Please excuse any smelling pisstakes.
-
ray - Posts: 221
- Joined: Wed Feb 24, 2010 12:24 am
- Location: Blackwater, Camberley. UK
5 posts
• Page 1 of 1
Who is online
Users browsing this forum: Bing [Bot] and 1 guest
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group