Breaking from a do-loop???

Dwight Hughes dwighth at ipa.net
Fri Jun 30 22:40:52 UTC 2000


Normally I would just factor out the whole do loop into its own method
and call it from the original method instead -- then just use normal
returns within the loop method to act as "break".

-- Dwight

jchludzinski at worldkey.net wrote:
> 
> I'm writing some numerical code and need to know:
> 
> How would I accomplish a "break" (a la 'C') from a ST do-loop?
> 
> Use an exception?
> 
> ---John





More information about the Squeak-dev mailing list