Re: [Larceny-users] error compiling cons form

2008-12-26 Thread Marco Maggi
The problem goes away if I do:

(define-syntax defer-exceptions
  (syntax-rules ()
((_ ?form0 ?form ...)
 (guard (exc (else
  (let ((e (deferred-exceptions)))
(and e (deferred-exceptions (cons exc e))
   ?form0 ?form ...

Marco Maggi wrote:
I really, really, really do not
want to know why compiling CONS
does this, just tell me if it is
a bug in the compiler and I have
to wait for a fix.

Sorry for the whining. :)
-- 
Marco Maggi

Now feel the funk blast!
Rage Against the Machine - Calm like a bomb


___
Larceny-users mailing list
Larceny-users@lists.ccs.neu.edu
https://lists.ccs.neu.edu/bin/listinfo/larceny-users


Re: [Larceny-users] error compiling cons form

2008-12-26 Thread Felix Klock
Marco (cc'ing larceny-users)-

On Dec 26, 2008, at 2:45 PM, Marco Maggi wrote:

 The problem goes away if I do:

 (define-syntax defer-exceptions
  (syntax-rules ()
((_ ?form0 ?form ...)
 (guard (exc (else
 (let ((e (deferred-exceptions)))
   (and e (deferred-exceptions (cons exc e))
   ?form0 ?form ...


I'm trying to reproduce your problem on a smaller test case (by taking  
snippets from the source code at 
http://github.com/marcomaggi/nausicaa/tree/master/uriel/libraries/uriel/lang.sls
 
  ), but so far have failed to reproduce the compiler error.

Does the problem also go away if you get rid of the invocations of the  
defer-exceptions macro?  Is there a particular invocation that the  
problem is strongly tied to?  (I just want to confirm that this is a  
problem dealing with the results of expansion, as opposed to the  
definition of the defer-exceptions macro itself.)

-Felix



___
Larceny-users mailing list
Larceny-users@lists.ccs.neu.edu
https://lists.ccs.neu.edu/bin/listinfo/larceny-users


Re: [Larceny-users] error compiling cons form

2008-12-26 Thread Felix Klock

On Dec 26, 2008, at 3:03 PM, Felix Klock wrote:

 Marco (cc'ing larceny-users)-

 On Dec 26, 2008, at 2:45 PM, Marco Maggi wrote:

 The problem goes away if I do:

 (define-syntax defer-exceptions
 (syntax-rules ()
   ((_ ?form0 ?form ...)
(guard (exc (else
(let ((e (deferred-exceptions)))
  (and e (deferred-exceptions (cons exc e))
  ?form0 ?form ...


 I'm trying to reproduce your problem on a smaller test case (by  
 taking snippets from the source code at 
 http://github.com/marcomaggi/nausicaa/tree/master/uriel/libraries/uriel/lang.sls
  
  ), but so far have failed to reproduce the compiler error.

Never mind, I managed to reproduce the problem on a small test case.

I'll be filing a ticket about this shortly.

-Felix


___
Larceny-users mailing list
Larceny-users@lists.ccs.neu.edu
https://lists.ccs.neu.edu/bin/listinfo/larceny-users


Re: [Larceny-users] error compiling cons form

2008-12-26 Thread Felix Klock
Marco (cc'ing larceny-users)-

On Dec 26, 2008, at 3:08 PM, Felix Klock wrote:

 I'll be filing a ticket about this shortly.

If you want to follow progress on this, I filed it as ticket #600 :

https://trac.ccs.neu.edu/trac/larceny/ticket/600

I will spend a bit more time trying to reduce it a bit more, but right  
now it seems like all of those components (the guard, the cond, the  
variable-arity procedure, etc) are necessary to reproduce the  
problem.  Quite odd.

As for actually fixing the problem, that may have to wait until Will  
gets a chance to look at it, unless I reduce it down to something  
really trivial to analyze...

-Felix



___
Larceny-users mailing list
Larceny-users@lists.ccs.neu.edu
https://lists.ccs.neu.edu/bin/listinfo/larceny-users


Re: [Larceny-users] error compiling cons form

2008-12-26 Thread Felix Klock
Marco (cc'ing larceny-users)-

On Dec 26, 2008, at 2:45 PM, Marco Maggi wrote:

 Marco Maggi wrote:
 I really, really, really do not
 want to know why compiling CONS
 does this, just tell me if it is
 a bug in the compiler and I have
 to wait for a fix.

 Sorry for the whining. :)

It is a bug in the compiler.  You have to wait for a fix.

I'll be checking one in very soon.  :)

-Felix

p.s. people who *do* want to know why this was happening can read  
about it in Ticket #600.  I put a pretty complete description there of  
the process I followed to track it down.  :)



___
Larceny-users mailing list
Larceny-users@lists.ccs.neu.edu
https://lists.ccs.neu.edu/bin/listinfo/larceny-users


Re: [Larceny-users] error compiling cons form

2008-12-26 Thread William D Clinger
Ticket #600 is fixed as of changeset:5880.

I didn't realize that Felix was working on the problem,
so I tracked it down independently.

Will

___
Larceny-users mailing list
Larceny-users@lists.ccs.neu.edu
https://lists.ccs.neu.edu/bin/listinfo/larceny-users