gcl-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gcl-devel] Re: CALL-ARGUMENTS-LIMIT and other things


From: Paul F. Dietz
Subject: [Gcl-devel] Re: CALL-ARGUMENTS-LIMIT and other things
Date: Mon, 01 Nov 2004 07:06:48 -0600
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.2) Gecko/20040803

Mike Thomas wrote:
Hi Camm.

1. While trawling through the ANSI tester output a few days ago I noticed
that call-arguments-limit (set to 64) conflicts with the test in "eval.c"
based on the C macro MAX_ARGS (63) defined in "h/funlink.h".

I played it safe and set call-arguments-limit to MAX_ARGS (in "eval.c")
which I left at 63.  This fixed the failure of SUBTRACT.3 in the ANSI tests:

(LET ((ARGS NIL))
        (LOOP
          FOR
          I
          FROM
          1
          TO
          (MIN 256 (1- CALL-ARGUMENTS-LIMIT))
          DO
          (PUSH 1 ARGS)
          ALWAYS
          (EQL (APPLY #'- 1000 ARGS) (- 1000 I))))

but is not necessarily a high quality design decision.  I also set
LAMBDA-PARAMETERS-LIMIT to MAX_ARGS.


Looking at that, the test seems wrong -- it passes CALL-ARGUMENTS-LIMIT
args to -, but that constant is an *exclusive* upper bound.

        Paul





reply via email to

[Prev in Thread] Current Thread [Next in Thread]