hughperman / pure-lang

Automatically exported from code.google.com/p/pure-lang
0 stars 0 forks source link

Aggregate const not working properly after clear #77

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
This doesn't work as advertised:

> const foo = [1,2,3,4,5];
> bar = foo;
> show bar
bar = [1,2,3,4,5];
> bar;
[1,2,3,4,5]
> clear foo
> bar;
foo
> const foo = [1,2,3,4,5];
> bar;
[1,2,3,4,5]

The result of evaluating bar should stay the same. If the const is a scalar, it 
does:

> clear foo bar
> const foo = 99;
> bar = foo;
> show bar
bar = 99;
> bar;
99
> clear foo
> bar;
99

Original issue reported on code.google.com by aggraef@gmail.com on 14 Jun 2012 at 6:38

GoogleCodeExporter commented 8 years ago
This issue was closed by revision bf607b00f9d3.

Original comment by aggraef@gmail.com on 15 Jun 2012 at 11:29