[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-users] csc doesn't like functions with :'s, csi doesn't care
From: |
Damian M Gryski |
Subject: |
[Chicken-users] csc doesn't like functions with :'s, csi doesn't care |
Date: |
Fri, 1 Apr 2005 19:10:40 -0500 |
User-agent: |
Mutt/1.5.8i |
The compiler and interpreter act differently on functions
with trailing colons in their names.
See the below transcript.
Expected output: hello, world
Actual output: Error: call of non-procedure: fn:with:colon:
--- 8< --- cut here --- 8< --- cut here --- 8< ---
jolt:work$ cat colon.scm
(define (fn:with:colon: msg) (display msg))
(fn:with:colon: "hello, world\n")
jolt:work$ csi -script colon.scm
hello, world
jolt:work$ csc colon.scm
jolt:work$ ./colon
Error: call of non-procedure: fn:with:colon:
colon.scm: 2 ###fn:with:colon
--- 8< --- cut here --- 8< --- cut here --- 8< ---
Removing the trailing colon from the function name works.
Damian
--
+==================== Damian Gryski || address@hidden ====================+
|"There is a crack, a crack in everything. That's how the light gets in."|
| 4F8882D5: 87F1 E4D7 085D 4BE4 ECF0 461F BC0A 3BCE 4F88 82D5 |
+========================================================================+
signature.asc
Description: Digital signature
- [Chicken-users] csc doesn't like functions with :'s, csi doesn't care,
Damian M Gryski <=