Re: [Unicon-group] An ICON question

2009-12-02 Thread Steve Wampler
Hi Charles,

charles_da...@fws.gov wrote:
 w := []
 w1 := w[1]

This assignment fails (silently), leaving w1 assigned null.

 It turns out that
 
 s := a || w[1]   # fails

Fails in the same way that w1 := w[1] fails (no value for that subscript).

 While,
 
 s := a || w1  # terminates the program with a runtime error.

Since wl has value null, this is the same as:

   s := a || null

and null cannot be converted to a string for the concatenation.



-- 
Steve Wampler -- swamp...@noao.edu
The gods that smiled on your birth are now laughing out loud.

--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
___
Unicon-group mailing list
Unicon-group@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/unicon-group


[Unicon-group] An ICON question

2009-12-01 Thread Charles_Davis
Folks:

Suppose that

w := []
w1 := w[1]

It turns out that

s := a || w[1]   # fails

While,

s := a || w1  # terminates the program with a runtime error.

Please help me understand why this difference occurs.

Regards,
Charles Davis

--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev___
Unicon-group mailing list
Unicon-group@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/unicon-group