[Swift-devel] loops and strings
Ben Clifford
benc at hawaga.org.uk
Sat Jul 28 07:47:55 CDT 2007
On Fri, 27 Jul 2007, Veronika Nefedova wrote:
> Or "name" considered to be a new variable every time since I have a type
> declaration next to it?
pretty much, yes - its declared inside the loop so every time that loop
code is run a new variables comes into existence. if its declared in an
outer loop, then a new one comes into existence every time the outer loop
runs. if its declared at the top level of your swift code, then a new one
comes into existence every time you run a new workfow.
--
More information about the Swift-devel
mailing list