Blitz (514/640)

From:James L Boyd
Date:21 Sep 99 at 19:13:44
Subject:Re: Function without return

Tony Rolfe churned out *this* drivel:

> Is it valid to do something like:
>
> Function.l Fred{a.l}
>
> if a = 1
> function return 1
> endif
>
> end function

Perfectly valid.

> In other words, to have a function which sometimes returns a value and
> sometimes doesn't. If this is acceptable, what happens to to the
> variable b in the following:
>
> b.l = 3
> b = Fred{2}
>
> Does b remain unchanged, does it take some arbitrary value, or what.

It'll come back as 0.

It's perfectly safe - you can have no Function Return at all if you
want - the function will automatically return 0.

(I have a little experience with functions ;)

See ya,






James L Boyd - jamesboyd@all-hail.freeserve.co.uk

Member of Team *AMIGA*, and *Dogbert's New Ruling Class.*

Connected from Dundee, Scotland.

(http://surf.to/all-hail/)


But what is all this fear of and opposition to oblivion? What
is the matter with the soft darkness, the dreamless sleep?
-- James Thurber

---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list-help@netsoc.ucd.ie