pasting multiple lines into session manager

Let it all hang out

pasting multiple lines into session manager

PostPosted by turnip » Thu Jun 11, 2015 2:30 pm

(Windows system, if that makes a difference)

If there is a website (or a text file, or whatever) that has, say, the following:

37107287533902102798797998220837590246510135740250
46376937677490009712648124896970078050417018260538
74324986199524741059474233309513058123726617309629

And I select all of that and do CTRL-C to put it in my windows paste buffer

And in the session manager, let's say I have:
A←⍞⋄B←⍞⋄C←⍞ and hit enter and then do CTRL-V, so that will all paste, what happens is the last line only goes into A, and B and C are still waiting for input. I'm trying to understand why that is. I would logically expect one of two results: either A gets assigned the first line, B the second line and C the third line, or, barring that, A gets the whole thing as a catenated string, possibly with a control character or two between two lines. Or perhaps, even a third possibility, A becomes a 3 by 50 character matrix

So, my question is three-fold:

1) How/why is a pasted line break treated differently than manually pressing enter?

2) What happened to the first two input lines? They've gone into the ether, somewhere.

3) Is there any setting or massaging of the original data that I can make/do to change this?

(It should be noted, btw, that if I do a ctrl-V in a function window, it properly treats it as 3 separate lines)
turnip
 
Posts: 21
Joined: Wed Jan 11, 2012 12:52 pm

Re: pasting multiple lines into session manager

PostPosted by turnip » Fri Jul 01, 2016 9:45 am

(still waiting for an answer to this a year later. Still an issue. Should I bump this up to bug reports?)
turnip
 
Posts: 21
Joined: Wed Jan 11, 2012 12:52 pm

Re: pasting multiple lines into session manager

PostPosted by manandpc » Sat Jul 02, 2016 12:46 am

I've just test your input in the session manager of Dyalog APL, and it is working.

Definitivly, APL NARS2000 can improve it , to assign into the 3 variables.

Note: it is not a bug, but a new implementation into NARS2000.

Code: Select all
Dyalog APL/W Version 14.0.23392
Unicode Edition
Unregistered
Sat Jul 02 01:37:00 2016
clear ws
      A←⍞⋄B←⍞⋄C←⍞
37107287533902102798797998220837590246510135740250
46376937677490009712648124896970078050417018260538
74324986199524741059474233309513058123726617309629
      A
37107287533902102798797998220837590246510135740250
      B
46376937677490009712648124896970078050417018260538
      C
74324986199524741059474233309513058123726617309629
manandpc
 
Posts: 67
Joined: Tue Jun 19, 2012 9:39 am


Return to Open Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron