:EndSection

General APL language issues

:EndSection

Postby ray on Fri Aug 13, 2021 2:15 pm

The current documentation on control structure states:
A third set of control words is used to identify the end of a particular control structure. These are :EndIf, :EndWhile, :EndRepeat, :EndFor, :EndSelect, :EndWith, :EndTrap, :EndHold and :EndDisposable. Although formally distinct, these control words may all be abbreviated to :End.


However with
Code: Select all
       :Section
I constantly get
Code: Select all
SYNTAX ERROR
        :End
        ∧

while using
Code: Select all
        :EndSection
works perfectly.

I assume this is just an oversight.
I am using Dyalog APL/W-64 Version 18.0.40684


Thanks
Ray
Ray Cannon
Please excuse any smelling pisstakes.
User avatar
ray
 
Posts: 219
Joined: Wed Feb 24, 2010 12:24 am
Location: Blackwater, Camberley. UK

Re: :EndSection

Postby ray on Fri Aug 13, 2021 2:29 pm

And while on the subject of ":end", should (and if so could) the "AutoFormat function" option convert ":end" to
:EndIf, :EndWhile, :EndRepeat, :EndFor, :EndSelect, :EndWith, :EndTrap, :EndHold and :EndDisposable as appropriate?
(Assuming the correct numbers of ":end"s have been supplied. just as AutoIndent does.)

Thanks
Ray Cannon
Please excuse any smelling pisstakes.
User avatar
ray
 
Posts: 219
Joined: Wed Feb 24, 2010 12:24 am
Location: Blackwater, Camberley. UK

Re: :EndSection

Postby Adam|Dyalog on Sun Aug 15, 2021 6:40 am

Hi Ray,
Thank you for this report. We are indeed planning on adding the missing support for :End as an alternative to :EndNamespace, :EndClass, :EndInterface, :EndProperty, :EndSection soon.

As for your idea of auto-converting :End to the appropriate full form, I've logged this as a request for enhancement.
User avatar
Adam|Dyalog
 
Posts: 134
Joined: Thu Jun 25, 2015 1:13 pm


Return to Language

Who is online

Users browsing this forum: No registered users and 1 guest