🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.ti.explorer
2 messages
2 total messages Started by Richard Acuff Mon, 08 Apr 1991 16:25
Re: TI lisp and "IF"
#352
Author: Richard Acuff
Date: Mon, 08 Apr 1991 16:25
10 lines
969 bytes
> Used to be, when I wrote a conditional using IF with a macro as the
> predicate, everything worked just fine.  I just installed the latest
> version of TI lisp on my MX (lisp version 6.1) and now I get a break with
> the message "Attempt to evaluate [my macro] as a function".  ANyone know if
> this is the correct behavior for IF and/or why this is now different?

I think I'm using the latest versions and I don't see this problem.  Do you
have demonstration code?

	-- Rich
Re: TI lisp and "IF"
#353
Author: Bjorn Victor
Date: Tue, 09 Apr 1991 12:38
28 lines
1701 bytes
  >Sender: acuff@ksl-mac-62.stanford.edu
  >Date: Mon, 8 Apr 91  09:25:25 PDT
  >Reply-To: acuff@sumex-aim.stanford.edu
  >From: Richard Acuff <acuff@sumex-aim.stanford.edu>
  >
  >> Used to be, when I wrote a conditional using IF with a macro as the
  >> predicate, everything worked just fine.  I just installed the latest
  >> version of TI lisp on my MX (lisp version 6.1) and now I get a break with
  >> the message "Attempt to evaluate [my macro] as a function".  ANyone know if
  >> this is the correct behavior for IF and/or why this is now different?
  >
  >I think I'm using the latest versions and I don't see this problem.  Do you
  >have demonstration code?
  >
  >	-- Rich

My guess is that Tom Bonura is using the macro before its definition.
This is a classic thing, and Tom should move the macro definition to
a place before its use, or change his DEFSYSTEM so the file using the
macro depends (at both compile- and load-time) on the file defining it.

I still don't understand why compilers can't be two-pass, to handle
these things.

-- Bjorn Victor			Bjorn.Victor@DoCS.UU.SE
Dept. of Computer Systems	tel: +46 18183169; fax: +46 18550225
Uppsala University, Sweden	"I'd rather hack a Lisp Machine!"
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads