Ticket #430 (closed defect: fixed)

Opened 3 years ago

Last modified 8 months ago

commit cbb27fe380ff8e45cdf04d812e1ec649bf45ca47 not (always) compatible with DSSSL key arguments

Reported by: alanpost Owned by:
Priority: critical Milestone: 4.9.0
Component: compiler Version: 4.6.x
Keywords: Cc:

Description

I have started getting a compilation error in my egg, genturfahi. Here is the error:

Error: nunjavni.scm:131: procedure `javni-*' called with wrong number of arguments

This procedure usses DSSSL #!key arguments. It is being called with the correct number of arguments, as you can see by looking at the source code:

source:release/4/genturfahi/trunk/nunjavni.scm@21431#L113

This is the simplest test case that I've managed to create which causes this error:

(define (foo)
  (define (bar #!key a)
    (define (baz)
      (bar a: #t))
    baz)
  bar)

Compiling the above code with csc (csc -o key key.scm) produces the error:

Error: key.scm:4: procedure `bar' called with wrong number of arguments

But it very clearly does have the correct number of arguments. I would expect the above code to compile without this error message.

If I remove the #!key support, the code compiles fine.

More simplistic cases using #!key arguments don't seem to trigger this error. The above code snippet is the simplest test case I was able to create that demonstrates the problem.

When I revert cbb27fe380ff8e45cdf04d812e1ec649bf45ca47, the genturfahi egg compiles and passes all of its tests.

Change History

Changed 3 years ago by felix

  • status changed from new to closed
  • resolution set to fixed

Thanks for reporting this - should be fixed in 2ee23dc ("experimental").

Changed 2 years ago by felix

  • milestone changed from 4.7.0 to 4.8.0

Milestone 4.7.0 deleted

Changed 8 months ago by felix

  • milestone changed from 4.8.0 to 4.9.0

Milestone 4.8.0 deleted

Note: See TracTickets for help on using tickets.