[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-kawa] [bug #46116] Add $bracket-apply$ to (kawa base)
From: |
anonymous |
Subject: |
[Bug-kawa] [bug #46116] Add $bracket-apply$ to (kawa base) |
Date: |
Sat, 03 Oct 2015 20:51:53 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:41.0) Gecko/20100101 Firefox/41.0 |
URL:
<http://savannah.gnu.org/bugs/?46116>
Summary: Add $bracket-apply$ to (kawa base)
Project: Kawa
Submitted by: None
Submitted on: Sat Oct 3 20:51:52 2015
Category: None
Severity: 3 - Normal
Item Group: Feature Request
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
It would be useful for $bracket-apply$ to be exported from (kawa base).
For example, the following snippet:
(define-library (ba)
(import (kawa base))
(begin
(let ((a (int[] #:length 10)))
(display a))))
(import (ba))
shows the following error:
ba.scm:6:15: warning - no declaration seen for $bracket-apply$
Argument 'address@hidden' to 'apply-to-args' has
wrong type (gnu.kawa.lispexpr.BracketApply) (expected: procedure)
at gnu.kawa.functions.ApplyToArgs.applyN(ApplyToArgs.java:168)
at gnu.mapping.ProcedureN.apply2(ProcedureN.java:39)
at ba.run(ba.scm:6)
at gnu.expr.ModuleBody.run(ModuleBody.java:47)
at gnu.expr.ModuleBody.run(ModuleBody.java:35)
at s.run(s.scm:1)
at gnu.expr.ModuleExp.evalModule2(ModuleExp.java:319)
at gnu.expr.CompiledModule.evalModule(CompiledModule.java:42)
at gnu.expr.CompiledModule.evalModule(CompiledModule.java:61)
at kawa.Shell.runFile(Shell.java:544)
at kawa.Shell.runFileOrClass(Shell.java:447)
at kawa.repl.processArgs(repl.java:653)
at kawa.repl.main(repl.java:773)
As of now, one would need to add the following to the imports, which is quite
tricky:
(only (gnu kawa lispexpr BracketApply)
(instance $bracket-apply$))
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?46116>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Bug-kawa] [bug #46116] Add $bracket-apply$ to (kawa base),
anonymous <=