Hi Volker

Try seems to be safe in that case, as I use it in the same application 
many times.

Throw some-data has probably the same effect, as my second example was 
just a shortening.
If I remember right, it was more like throw something to a function call 
a few levels higher

AR


Volker Nitsch wrote:

>On 4/25/05, SQLAB <[EMAIL PROTECTED]> wrote:
>  
>
>>=20
>>Hi Volker
>>=20
>>Volker Nitsch wrote:
>>=20
>>    
>>
>>>Just curious: can you throw something? not
>>> if .. [thow]
>>>      
>>>
>
>throw can take an argument. it can also take no arguments (its
>any-type). but i thought maybe that has an error.
>if it is 'catch, try 'try instead and throw an error.
>if error? try[
> ..
> if not important[throw make error! "forget it"]
> ..
>]
>  
>
>'try is more often used, maybe better debugged. thats also the way
>Ladislavs 'throw' works, as far as i see.
>
>Oh, and of course there is
> forever .. [
>  ..
>  if not important[break]
>  ..
> ]
>if you are not in an inner loop.
>  
>
>  
>
I am always in an inner loop and I just want to use throw as Carl 
recommended instead of the classic C continue.

>--=20
>-Volker
>
>"Any problem in computer science can be solved with another layer of
>indirection. But that usually will create another problem." David
>Wheeler
>  
>
-- 
To unsubscribe from the list, just send an email to 
lists at rebol.com with unsubscribe as the subject.

Reply via email to