@Patrick O'Leary solved was probably exaggerated...But would be a lot better =) The connection between iteration and asigning multiple variables to one return value is easier made than a no method error about a function you might have never heard about.
Am Montag, 20. Juli 2015 21:09:00 UTC+2 schrieb Kaj Wiik: > > I started to get a strange error while debugging my code, here's a > simplified example: > > julia> function foo(a) > println("foo..") > end > foo (generic function with 1 method) > > julia> a = foo(2) > foo.. > > julia> a,b = foo(2) > foo.. > ERROR: `start` has no method matching start(::Nothing) > > > So, the problem was a missing return value, it is strange that missing one > value did not give error but two values.... It took a quite long time to > track this down. Perhaps a bit more informative error message would be > possible...? > > Cheers, > Kaj > >