SapphireDensetsu / ypsilon

Automatically exported from code.google.com/p/ypsilon
Other
0 stars 0 forks source link

Explicit identifier capture not working #86

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
My xitomatl/tests/match-tests.sps from Xitomatl r158 is triggering a bug of
explicit identifier capturing (a.k.a. breaking hygiene).  See the
source-code around line 967.  With Ypsilon r405:

[d@eep:~/zone/scheme]-> ypsilon xitomatl/tests/match-tests.sps 

error: attempt to reference unbound identifier inc
  >  (inc)
  ..."/home/d/zone/scheme/xitomatl/tests/match-tests.sps" line 973

expanding:
  >  (inc)
  ..."/home/d/zone/scheme/xitomatl/tests/match-tests.sps" line 973
  *  ...
  *  (check-failed (match '(a . b) ((x) #f)))
  ..."/home/d/zone/scheme/xitomatl/tests/match-tests.sps" line 118
  *  (check
       (let-values ((vs (match '(a . b) ((x . y) (values y x))))) vs)
       (=> equal?)
       '(b a))
  ..."/home/d/zone/scheme/xitomatl/tests/match-tests.sps" line 115
  *  (check (let-values ((vs (match '(a . b) ((x . y) (values y x))))) vs)
=> '(b a))
  ..."/home/d/zone/scheme/xitomatl/tests/match-tests.sps" line 115
  *  (check (match '(a . b) ((x . y) (cons y x))) (=> equal?) '(b . a))
  ..."/home/d/zone/scheme/xitomatl/tests/match-tests.sps" line 114
  *  (check (match '(a . b) ((x . y) (cons y x))) => '(b . a))
  ..."/home/d/zone/scheme/xitomatl/tests/match-tests.sps" line 114

[d@eep:~/zone/scheme]-> 

Original issue reported on code.google.com by derick.e...@gmail.com on 11 Mar 2009 at 12:55

GoogleCodeExporter commented 8 years ago
Thank you for bug report!

Original comment by y.fujita...@gmail.com on 12 Mar 2009 at 9:31

GoogleCodeExporter commented 8 years ago
I have fixed the bug and trunk directory is updated to revision 406.
New version passes all tests in match-tests.sps on my system :)
Please try. Thank you!
--fujita

Original comment by y.fujita...@gmail.com on 12 Mar 2009 at 11:55

GoogleCodeExporter commented 8 years ago
It's fixed.

Original comment by derick.e...@gmail.com on 12 Mar 2009 at 3:14

GoogleCodeExporter commented 8 years ago
Thank you for your reply. I close this issue. :)
-- fujita

Original comment by y.fujita...@gmail.com on 12 Mar 2009 at 11:38