[Swift-devel] on the semantics of 'array closing'

Ben Clifford benc at hawaga.org.uk
Sat Jun 16 08:34:10 CDT 2007



On Sat, 16 Jun 2007, Mihael Hategan wrote:

> > It works because Swift implicitly marks arrays returned from compound 
> > procedures as closed (which may or may not be correct).
> 
> We defined it as correct. Something created in one scope cannot be
> modified in a parent scope.

That's fine - what was unintuitive to me was that something created in one 
scope cannot be referred to in that same scope. i.e. you can create a 
piecewise using a[...]=... but cannot then refer to a.

-- 



More information about the Swift-devel mailing list