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: Juergen Sauermann
Subject: Re: [Bug-apl] How do you use HTML∆TX_B_E
Date: Thu, 11 Jun 2015 14:10:10 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.4.0

Hi Alex,

your nesting looks incorrect. yB is supposed to be a (nested) vector of lines.
In your example, "" is a (non-nested) vector of chars while e,g, "" "" is a (nested) vector of empty lines.
I believe using ,⊂"" instead of "" should do the job.

/// Jürgen


On 06/11/2015 03:05 AM, address@hidden wrote:
Hi Christian,
Unfortunately, the code seems to not care about this fact as a single empty vector is still problematic. It has no troubles with two empty vectors though:

            button←'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]          
HTML∆TX_B_E[4]
 
************************************************</pre>
            button←'BUTTON' HTML∆TX_B_E[⊃,/b∆attr1 b∆attr2 b∆attr3] "" ""
      button
 <BUTTON name="submitButton" type="submit" value="SUBMIT!">       </BUTTON> 

-------- Original Message --------
Subject: Re: [Bug-apl] How do you use HTML∆TX_B_E
From: Christian Robert <address@hidden>
Date: Wed, June 10, 2015 5:24 pm
To: address@hidden
Cc: "address@hidden" <address@hidden>

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]