[Swift-devel] [Bug 177] New: variables declared inside an iterate body should be available to the termination condition
bugzilla-daemon at mcs.anl.gov
bugzilla-daemon at mcs.anl.gov
Sat Feb 21 09:12:42 CST 2009
http://bugzilla.mcs.anl.gov/swift/show_bug.cgi?id=177
Summary: variables declared inside an iterate body should be
available to the termination condition
Product: Swift
Version: unspecified
Platform: Macintosh
OS/Version: Mac OS
Status: NEW
Severity: enhancement
Priority: P2
Component: SwiftScript language
AssignedTo: benc at hawaga.org.uk
ReportedBy: benc at hawaga.org.uk
Variables declared inside an iterate body are not available to the termination
expression. Those variables should be made available to the termination
expression.
As far as I can tell, the lack of this ability does not restrict what can be
expressed, as a variable v used inside the loop can always be transformed into
an array element v[ix] with ix the iteration index, and v declared outside of
the iteration loop. However, it does force a certain coding style which can be
unintuitive.
--
Configure bugmail: http://bugzilla.mcs.anl.gov/swift/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You reported the bug, or are watching the reporter.
You are the assignee for the bug, or are watching the assignee.
More information about the Swift-devel
mailing list