[slang-users] goto statement in slang
Tolga Guver
guver.tolga at gmail.com
Tue Sep 16 21:28:52 UTC 2008
Hi,
I am a newcomer to slang, I have number of scripts written in IDL and
want to convert them into s-lang scripts to be able to use within the
ISIS (Interactive Spectral Interpretation System) software.
I was wondering if there is anything like a goto statement in IDL.
I saw in the mailing archive
(http://mailman.jedsoft.org/pipermail/slang-users-l/2007.txt) that
someone used something like
SLang_verror (SL_MALLOC_ERROR, "Cannot Create ARRAY for Attributes!! " ) ;
goto attribute_error ;
}
if (-1 == SLang_push_array (at, 1))
{
SLang_verror (SL_INTRIN_ERROR, "Cannot Push Attribute Array on
Stack !! " ) ;
goto attribute_error ;
}
return;
attribute_error:
but when i tried a similar expression i get an error telling goto is
undefined.
best,
tolga
--
======================
Tolga Guver
www.physics.arizona.edu/~tolga
Steward Observatory
933 N Cherry Ave., Rm. N340
Tucson AZ 85721-0065
More information about the slang-users-l
mailing list