Function without return value



Maxima doesn't have subroutines which return no value.

It also doesn't have a generic NULL / NA / Bottom value (UND is used to
represent an undefined limit, but not used elsewhere).

And it doesn't have the concept of wrapping a value in invisibility (so that
it doesn't print out).

If you simply don't want a value printed when you call a function from the
top level, you can return the empty string.  But then there is no way of
distinguishing between the empty-string-as-non-value and the true empty
string....

            -s

On Mon, Apr 12, 2010 at 09:35, Wilhelm Haager
<wilhelm.haager at htlstp.ac.at>wrote:

> Hi,
>
> is it possible to define a function without any return value,
> which just produces side effects?.
> Of course, any return value can be neglected;
> but is it possible to suppress a return value on principal
> (on Maxima level)?
>
> Wilhelm Haager
>
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
>