From: "Amgarp" <PhyrePhox@firemail.de>
Subject: Problem with function return
Date: 2000/04/02
Date: 2000-04-02T00:00:00+00:00 [thread overview]
Message-ID: <38e7a0c8$0$17676@businessnews.de.uu.net> (raw)
Hi,
please help me with the following Problem:
Main programm:
type color is (red,gree,blue);
col:color;
col:=some_function(parameter);
Now, "some_function" returns of course a color type,
but when the parameter is bad(e.g. an empty string), an exception will be
raised.
What should the function return then?
Without a return statement in the e-handler there'll be a
Programm_Error.
Is there a way to prevent the line "col:=some_function(parameter);"
to be evaluated, or should it just return "some"(but of course wrong)
value?
Thanks!
next reply other threads:[~2000-04-02 0:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-04-02 0:00 Amgarp [this message]
2000-04-02 0:00 ` Problem with function return David Starner
2000-04-03 0:00 ` A. Logue
2000-04-02 0:00 ` Ray Blaak
2000-04-03 0:00 ` Robert Dewar
2000-04-03 0:00 ` Robert Dewar
2000-04-03 0:00 ` Mats Weber
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox