Hello David,
FYI, Figure 8, on page 49 of IBM's "APL2 Programming: Language
Reference" (2nd ed, Feb 1994) says an empty character vector displays as
a blank line.
Regards,
Fred
On Tue, 2014-05-27 at 12:32 -0700, David B. Lamkins wrote:
> I find this confusing and counterintuitive.
>
>
I am not sure I disagree with David, I am just arguing for consistency.
Thanks!
Blake
On Wed, May 28, 2014 at 5:02 AM, Juergen Sauermann <
juergen.sauerm...@t-online.de> wrote:
> Hi,
>
> I agree with David that this is counter-intuitive, but I will
> make it IBM APL2 compatible.
>
> /// Jürge
Hi,
I agree with David that this is counter-intuitive, but I will
make it IBM APL2 compatible.
/// Jürgen
On 05/27/2014 11:37 PM, David B. Lamkins wrote:
On Tue, 2014-05-27 at 15:19 -0500, Blake McBride wrote:
Dear David,
First, I assure you, this is how it works.
I'm certainly not arguin
NOTE: Only in the case of empty arrays, of course.
The rank of ' ' is zero; we certainly need to print a blank followed by
a CR...
On Tue, 2014-05-27 at 19:28 -0700, David Lamkins wrote:
> Not the last dimension, but the rank.
>
>
> On Tue, May 27, 2014 at 7:24 PM, Elias Mårtenson
> wrote:
>
Not the last dimension, but the rank.
On Tue, May 27, 2014 at 7:24 PM, Elias Mårtenson wrote:
> Perhaps the number of lines displayed is equal to the size of the last
> dimension?
>
>
> --
"The secret to creativity is knowing how to hide your sources."
Albert Einstein
http://soundcloud.com
Perhaps the number of lines displayed is equal to the size of the last
dimension?
Regards,
Elias
On 28 May 2014 10:23, David B. Lamkins wrote:
> Clearly, I can use something like this:
>
> ∇sink v
> ⍝ Consume value; no display
> ∇
>
> ... which I'll gladly use in place of 0⍴.
>
> However, I f
Clearly, I can use something like this:
∇sink v
⍝ Consume value; no display
∇
... which I'll gladly use in place of 0⍴.
However, I found this in IBM's "An Introduction to APL 2":
"24. The display of an empty array having rank greater than one may use
zero lines, or may extend to multiple lines
I just downloaded and installed IBM APL2 on my Windows box. '' prints a
blank line as I have been stating.
On Tue, May 27, 2014 at 3:32 PM, Blake McBride wrote:
> I don't know why it would be hard to rationalize. Here is your algorithm:
>
> if (printable value) {
> print value
> prin
On Tue, 2014-05-27 at 15:19 -0500, Blake McBride wrote:
> Dear David,
>
>
> First, I assure you, this is how it works.
I'm certainly not arguing the fact that this is the behavior you've seen
in other implementations.
I'm simply trying to reconcile the behavior you describe in light of my
long
I don't know why it would be hard to rationalize. Here is your algorithm:
if (printable value) {
print value
print cr
}
Here is the algorithm used by all APL's I've used:
if (printable value) {
print value
}
Print cr
The advantage of the second algorithm is that if you are printin
Dear David,
First, I assure you, this is how it works.
I do know of a 0⍴ idiom for branching and for nullifying a prior
value in a subsequent assignment. I am unaware of any need for that idiom
to prevent printing. Can you give me one example in a function?
Thanks.
Blake
On Tue, May 27, 20
I find this confusing and counterintuitive.
If displaying an empty vector causes the interpreter to emit a CR, what
then becomes of the 0⍴ idiom commonly used to suppress display of
? Wouldn't your output be littered with spurious CRs every time
your program executed such a line?
I spent a half-h
a. Neither an empty vector nor a vector of multiple elements has a CR in
it. The system prints the vector, and then prints a CR. CR gets printed
either way.
b. I found all these errors while porting my production code which ran
consistently over IBM APL and several other APL's. They all print
How is that so? '' is an empty vector.
On Mon, 2014-05-26 at 20:30 -0500, Blake McBride wrote:
> ∇test
> [1] '1'
> [2] ' '
> [3] '2'
> [4] ''
> [5] '3'
> [6] ∇
> test
> 1
>
> 2
> 3
>
>
>
>
> There should be a blank line between 2 and 3.
>
>
> Thanks.
>
>
> Blake
>
>
14 matches
Mail list logo