[Swift-user] NullPointerException

Ben Clifford benc at hawaga.org.uk
Tue Aug 26 15:54:46 CDT 2008


On Tue, 26 Aug 2008, Andriy Fedorov wrote:

> Just to update the list on the resolution of this problem (thanks, Ben
> Clifford!).
> 
> I was not supposed to have ";" at the end of the "foreach" construct:
> 
> foreach i in [0:numPoints-1] {
>  ...
> }    // <=== NO ";" HERE!!!

Though this perhaps should be allowed, in as much as empty statements are 
allowed.

-- 




More information about the Swift-user mailing list