orc-lang / orc

Orc programming language implementation
https://orc.csres.utexas.edu/
BSD 3-Clause "New" or "Revised" License
41 stars 3 forks source link

The output from Println says "List(2, 3)" when it should say "[2, 3]". #75

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
From:   Jayadev Misra
Subject:    output from Println says "List(2, 3)" when it should say "[2, 3]".
Date:   April 23, 2011 18:38:56 CDT

The output from Println says "List(2, 3)" when it should say "[2, 3]".

def test([p,q] as xs) = Println([p,q] + " is " + xs) >> stop

val z = [2,3]
test(z) | z

Output:
[2, 3]
List(2, 3) is List(2, 3)

Original issue reported on code.google.com by jthywissen on 25 Apr 2011 at 2:58

GoogleCodeExporter commented 9 years ago

Original comment by jthywissen on 25 Apr 2011 at 2:58

GoogleCodeExporter commented 9 years ago

Original comment by dkitc...@gmail.com on 25 Apr 2011 at 7:19

GoogleCodeExporter commented 9 years ago
Fixed in r2826. Print sites now use the same formatting as publications, except 
that printed strings are of course not escaped.

Original comment by dkitc...@gmail.com on 27 Apr 2011 at 9:12

GoogleCodeExporter commented 9 years ago

Original comment by dkitc...@gmail.com on 27 Apr 2011 at 9:13

GoogleCodeExporter commented 9 years ago
Additional fix in r2828 which also fixes this problem for string concatenation 
(+). This corrects the original program's output as intended.

Original comment by dkitc...@gmail.com on 27 Apr 2011 at 9:44

GoogleCodeExporter commented 9 years ago

Original comment by jthywissen on 2 Sep 2014 at 7:37