bug-apl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-apl] How do you use HTML∆TX_B_E


From: Christian Robert
Subject: Re: [Bug-apl] How do you use HTML∆TX_B_E
Date: Wed, 10 Jun 2015 20:24:29 -0400
User-agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0

From what I understood,

this is a scalar ''   (an empty one)
this is a vector ""   (an empty one)

'something' is equivalent to "something"  as long as length of something >= 2
'a' <> "a"  because 'a' is a scalar and "a" is an array of length 1
''  <> ""   because '' is an empty scalar and "" is an empty array.

So, use the double quotes rather than the single quote for most things will 
save you
lot of problems, especially where the program expect a string as left or right 
argument.

I may be wrong.

Christian Robert.

On 2015-06-10 19:27, address@hidden wrote:
Hi bug-apl,

Im not even sure if I am using it right but it seems that HTML∆TX_B_E wants a 
nested vector as it's right argument. This works:
b∆attr1←'name'HTML∆attr'submitButton'
b∆attr2←'type'HTML∆attr'submit'
b∆attr3←'value'HTML∆attr'SUBMIT!'

      ⊃,/'BUTTON' HTML∆TX_B_E[⊃,/b∆attr1 b∆attr2 b∆attr3] '' ''
┌→──────────────────────────────────────────────────────────────────────┐
│<BUTTON name="submitButton" type="submit" value="SUBMIT!">    </BUTTON>│
└───────────────────────────────────────────────────────────────────────┘

but only supplying one string, causes that nasty HTML stack thing to print out 
(and I'm not too sure how to understand it). Is this on purpose, and maybe i'm 
using it entirely wrong?

       ⊃,/'BUTTON' HTML∆TX_B_E[⊃,/b∆attr1 b∆attr2 b∆attr3] ''
┌─┐
│ │
└─┘
┌→────────────────────────────────────────────────────┐
│<pre>************************************************│
└─────────────────────────────────────────────────────┘
┌─┐
│ │
└─┘
┌→────────────────────────────────────────────────────┐
│*** Assertion (sert 2 ≡ ≡yB) failed at HTML∆TX_B_E[4]│
└─────────────────────────────────────────────────────┘
┌⊖┐
│ │
└─┘
┌→─────┐
│</pre>│
└──────┘
┌→──────────┐
↓≡  yB: 1┏⊖┓│
│⍴⍴ yB: 1┃ ┃│
│⍴  yB: 0┗━┛│
└───────────┘
┌→─────┐
│</pre>│
└──────┘
┌⊖┐
⌽ │
└─┘
┌→────┐
│<pre>│
└─────┘
┌─┐
│ │
└─┘
┌→─────┐
│Stack:│
└──────┘
┌→─────────────┐
↓◊[0]          │
│◊[0]          │
│◊[0]          │
│◊[0]          │
│◊[0]          │
│◊[0]          │
│HTML∆TX_B_E[4]│
└──────────────┘
┌─┐
│ │
└─┘
┌→─────────────────────────────────────────────────────┐
│************************************************</pre>│
└──────────────────────────────────────────────────────┘





reply via email to

[Prev in Thread] Current Thread [Next in Thread]