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

Reply via email to