Hi Alexey,
agreed, except that this is not at all about singletons.
According to Wiki:
In software engineering, the singleton
pattern is a software design pattern that
restricts the instantiation
of a class to one object. This is useful wh
Hello
from the apl.html
---
SCRIPT.apl
#! /usr/local/bin/apl --script
⊃⎕ARG ⍝ show command line options
)OFF ⍝ leave the interpreter
---
chmod 777 SCRIPT.apl
---
./SCRIPT.apl
/usr/local/bin/apl
--script
./mm.apl
---
./SCRIPT.apl arg1
.
unkno
./SCRIPT.apl -- arg1
I think this is what you want.
Xtian.
On 2017-02-02 21:11, enz...@gmx.com wrote:
Hello
from the apl.html
---
SCRIPT.apl
#! /usr/local/bin/apl --script
⊃⎕ARG ⍝ show command line options
)OFF ⍝ leave the interpreter
---
chmod 777 SCRIPT.apl
-
well "--" terminate the options for the program (apl) itself and pass the rest
of the arguments to the client.
Xtian.
On 2017-02-02 21:11, enz...@gmx.com wrote:
Hello
from the apl.html
---
SCRIPT.apl
#! /usr/local/bin/apl --script
⊃⎕ARG ⍝ show command line options
)OFF
Yesterday or the day before I added to my Util workspace the folloing:
∇Parameters[⎕]∇
∇
[0] z←Parameters
[1] z←1↓(∨\(⊂'--')≡¨⎕arg)/⎕arg
∇
Xtian.
On 2017-02-02 21:11, enz...@gmx.com wrote:
Hello
from the apl.html
---
SCRIPT.apl
#! /usr/local/bin/apl --script
⊃⎕AR
I get a DOMAIN ERROR when trying to use the new ]BOXING feature. Here's a
transcript:
* ]BOXING ¯29*
* ⍳10*
DOMAIN ERROR+
⍳10
^
* )more*
A ⎕CR B with invalid A < 0
Regards,
Elias