[Top][All Lists]

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

#1690: Specialization breaks "and" macro?

From: Chicken Trac
Subject: #1690: Specialization breaks "and" macro?
Date: Tue, 24 Mar 2020 18:50:23 -0000

#1690: Specialization breaks "and" macro?
            Reporter:  sjamaan  |       Type:  defect
              Status:  new      |   Priority:  major
           Milestone:  5.4      |  Component:  unknown
             Version:  5.2.0    |   Keywords:  specialization
Estimated difficulty:  medium   |
 hackers/2020-03/msg00012.html|Reported]] by Kon Lovett:

 cat >matches-prob-test.scm <<'HERE'
 (import scheme)
 (import (chicken irregex))

 (define (uses-predicate str)
     (string? str)
     (irregex-match? '(: "foo") str) ) )

 (print "uses-predicate: " (uses-predicate ""))

 csc ./matches-prob-test.scm
 #uses-predicate: #f

 csc -specialize ./matches-prob-test.scm
 #Error: unbound variable: and

 Interestingly, this goes all the way back to 4.9.0; in this
 program (with suitable changes for C4) works as expected with

Ticket URL: <>
CHICKEN Scheme <>
CHICKEN Scheme is a compiler for the Scheme programming language.

reply via email to

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