bug-apl
[Top][All Lists]
Advanced

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

Re: [Bug-apl] alias for built-in functions


From: Juergen Sauermann
Subject: Re: [Bug-apl] alias for built-in functions
Date: Fri, 04 Sep 2015 21:18:50 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.4.0

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

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