bug-apl
[Top][All Lists]
Advanced

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

Re: [Bug-apl] The ' 2 ⎕TF ' bug, more info


From: Juergen Sauermann
Subject: Re: [Bug-apl] The ' 2 ⎕TF ' bug, more info
Date: Thu, 02 Apr 2015 17:59:02 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.4.0

Hi Xtian,

thanks. Should work now (
SVN 592).

/// Jürgen


On 04/01/2015 02:52 AM, Christian Robert wrote:
      var←'kelvin' (,'v') 'some text'
      D var
┌3───────────────────────┐
│┌6─────┐ ┌→┐ ┌9────────┐│
││kelvin│ │v│ │some text││
│└──────┘ └─┘ └─────────┘│
└∊───────────────────────┘
      2 ⎕tf 'var'
var←'kelvin' 'v' 'some text'
      ⍎2 ⎕tf 'var'
      D var
┌3─────────────────────┐
│┌6─────┐ v ┌9────────┐│
││kelvin│   │some text││
│└──────┘   └─────────┘│
└∊─────────────────────┘
      ⍝ Length 1 vectors ( here (,'v') ) have been converted to scalar 'v'


      var←'kelvin' (,'v') (0⍴'') (⍳0) 'some text'
      D var
┌5───────────────────────────────┐
│┌6─────┐ ┌→┐ ┌⊖┐ ┌⊖┐ ┌9────────┐│
││kelvin│ │v│ │ │ │0│ │some text││
│└──────┘ └─┘ └─┘ └─┘ └─────────┘│
└∊───────────────────────────────┘
      ⍎2 ⎕tf 'var'
      D var
┌5─────────────────────────────┐
│┌6─────┐ v ┌⊖┐ ┌⊖┐ ┌9────────┐│
││kelvin│   │ │ │0│ │some text││
│└──────┘   └─┘ └─┘ └─────────┘│
└∊─────────────────────────────┘



      ⍝ in fact only Length 1 vectors are affected, length 0 are OK.

ps; copy&paste had problem here because of the horizontal pixel width of '⊖' in windows


Xtian.





reply via email to

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