Hi,

Ah my bad, now it works for me. The problem was I already defined variable DISPLAY with a numeric value previously, and unable to reassign it to a function without prior erasing it.

Br,
/Alexey

On 04/09/15 21:18, Juergen Sauermann wrote:
Hi Alexey,

it works on my machine:

*DISPLAY←{8⎕CR ⍵}

      ⎕CR 'DISPLAY'
λ←DISPLAY ⍵
λ←8⎕CR ⍵

      DISPLAY 1 2 3
┌→────┐
│1 2 3│
└─────┘
*
You must be careful that your *⍵ *is the proper one:

*      ⎕UCS '⍵' ⍝ Omega in GNU APL**
**9077*

There could be characters that look like *⍵* but are not..

/// Jürgen


On 09/04/2015 08:16 PM, Alexey Veretennikov wrote:
Hi,

I want to make an alias for the display function, like in Dyalog APL DISPLAY, but by some reason can't.
I want to function DISPLAY behave as 8⎕CR:

DISPLAY←{8⎕CR ⍵}

produces an error:
DEFN ERROR
      λ1
      ^

The
      DISPLAY←8⎕CR
also doesn't work:

SYNTAX ERROR
      DISPLAY←8 ⎕CR
      ^         ^

As a newbee, I would like some tips on what I'm doing wrong :)

Br,
/Alexey




Reply via email to