HP3000-L Archives

March 2005, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Matthew Perdue <[log in to unmask]>
Reply To:
Matthew Perdue <[log in to unmask]>
Date:
Tue, 22 Mar 2005 11:47:04 -0600
Content-Type:
text/plain
Parts/Attachments:
text/plain (31 lines)
Quoting Peter Smithson <[log in to unmask]>:

> Hi,
>
> I've not seen SPL before.
>
> What does
>
> IF < THEN
>
> mean?
>
> I've a feeling it's checking the return code of an intrinsic call.  So
> perhaps it's checking for CCL.  The intrinsics can return CCL, CCE or
> CCG but there are a lot more operations in SPL so I'm not sure.
>
> Can someone explain?
>
> Thanks.
>
> Peter

You're correct - the IF THEN is testing the condition code returned by the
immediately preceeding intrinsic call that placed the value of the condition
code on the top of the stack. You have to be very careful to test the condition
code immediately after the call as any other operation that would affect the top
of stack will change your results.

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2