&undefined missing from REPL exceptions
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ikarus Scheme |
Fix Committed
|
Low
|
Abdulaziz Ghuloum |
Bug Description
Ikarus Scheme version 0.0.3+ (revision 1521, build 2008-06-19)
Copyright (c) 2006-2008 Abdulaziz Ghuloum
> (guard (ex [else (simple-conditions ex)])
(eval 'foo (environment '(rnrs))))
(#[&who foo] #[&message "unbound identifier"] #[&undefined] #[&trace #<syntax foo>])
>
> (guard (ex [else (simple-conditions ex)])
foo)
(#[&assertion] #[&who eval] #[&message "unbound variable"] #[&irritants (foo)])
>
They're also inconsistent in other ways, as you can see.
Super low priority for me, just noticed it.
Not an issue outside the REPL:
$ cat uses-undefined.ss
(import
(rnrs) (rnrs eval))
(write (guard (ex [else (simple-conditions ex)])
(eval 'foo (environment '(rnrs)))))
(newline)
(write (guard (ex [else (simple-conditions ex)])
foo))
(newline)
$ ikarus --r6rs-script uses-undefined.ss
Unhandled exception:
Condition components:
1. &who: foo
2. &message: "unbound identifier"
3. &undefined
4. &source-
file-name: "uses-undefined.ss"
character: 203
5. &trace: #<syntax foo [char 203 of uses-undefined.ss]>
Related branches
Changed in ikarus: | |
importance: | Undecided → Low |
Changed in ikarus: | |
milestone: | none → 0.0.4 |
The two error messages are different on purpose. One is an expand-time (syntactic) error and the other is a run-time error. Is there a reason why they should be the same?