bug-apl
[Top][All Lists]
Advanced

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

Re: Selective specification with Quad IO fails


From: Dr. Juergen Sauermann
Subject: Re: Selective specification with Quad IO fails
Date: Sun, 25 Aug 2024 18:21:44 +0200
User-agent: Mozilla Thunderbird

Hi again,

sorry, (1⊃x['y']) does not work either with selective specification.



On 8/25/24 17:57, Dr. Juergen Sauermann wrote:
Hi Hans-Peter,

according to the IBM language reference page 41 is
selective specification limited to specific functions,
and '.' is unfortunately not one of them.

I will look into making this working, but it could be tricky and take a while,

In the meantime you could use x['y'] instead of x.y as a workaround:

            x.y ← 1 2 3
      x['y']
1 2 3
      1⊃x['y']
1

Best Regards,
Jürgen


On 8/25/24 15:12, Hans-Peter Sorge wrote:
Hi,

Just a simple test:

      x.y ← 1 2 3
      x.y
1 2 3

      x.y[1]
1

      1⊃x.y
1

      ⎕IO⊃x.y
1
      (⎕IO⊃x.y)←⊂ 'abc'
SYNTAX ERROR+
      (⎕IO⊃x.y)←⊂'abc'
      ^        ^

      (1⊃x.y)←⊂ 'abc'
      x.y
 abc 2 3

Greetings
Hans-Peter



reply via email to

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