<HEAD><TITLE>discuss@charon: [781] in "Coldmud discussion meeting"</TITLE>
<H1>[781] in Coldmud discussion meeting</H1></HEAD>
<A HREF="/"><IMG SRC="/i-d.gif" ALT="root"></A>
<A HREF="?781"><IMG SRC="/i-back.gif" ALT="meeting"></A>
<A HREF="/help.html"><IMG SRC="/i-help.gif" ALT="help"></A>
<A HREF="1"><IMG SRC="/i-first.gif" ALT="first"></A>
<A HREF="776"><IMG SRC="/i-fref.gif" ALT="first in chain"></A>
<A HREF="780"><IMG SRC="/i-pref.gif" ALT="previous in chain"></A>
<A HREF="780"><IMG SRC="/i-prev.gif" ALT="previous"></A>
<A HREF="782"><IMG SRC="/i-next.gif" ALT="next"></A>
<IMG SRC="/n-nref.gif" ALT="">
<IMG SRC="/n-lref.gif" ALT="">
<A HREF="1641"><IMG SRC="/i-last.gif" ALT="last"></A>
<HR><H2>Re: Stupid Question Time</H2>
<H3>daemon@ATHENA.MIT.EDU (Mon Aug 21 15:05:00 1995
)</H3>
<PRE>
Date: Mon, 21 Aug 1995 13:02:47 -0600
From: 869683 Gillespie Brandon James &lt;brandon@paradise.declab.usu.edu&gt;
To: coldstuff@MIT.EDU

&lt; And, one woudl assume for your example, a error-type logicly or'd
&lt; with a buffer yields the buffer in question.  Also, one would assume
&lt; that a buffer or'd with another buffer produces.. what... the
&lt; combined contents of both buffers?

No.  More examples (direct data, rather than variables):

    buffer = `[1,2,3] || `[50,29,20];

Because `[1,2,3] is logically true (whereas `[] is logically false), buffer
would be assigned `[1,2,3].  However:

    buffer = `[] || `[50,29,20];

buffer is assigned `[50,29,20].  Basically, doing:

    variable = (| func(args) |) || default;

Is the same as:

    catch any {
        variable = func(args);
    } with handler {
        variable = default;
    }

Or, based off the logically true/false aspect:

    variable = (| func(args) |);
    if (!variable)
        variable = default;

However, in all cases, the first example is the best (lest pcode to execute).

-Brandon
</PRE>
