bugKawa - Bugs: bug #46116, Add $bracket-apply$ to (kawa base)

 
 

bug #46116: Add $bracket-apply$ to (kawa base)

Submitted by:  None
Submitted on:  Sat 03 Oct 2015 08:51:52 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: Feature RequestStatus: Fixed
Privacy: PublicAssigned to: Per Bothner <bothner>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Wed 07 Oct 2015 08:05:41 PM UTC, comment #1:

Sure.
I also added $bracket-list$, so you can use [x y z].
Fix and test-case checked in.

Per Bothner <bothner>
Project AdministratorIn charge of this item.
Sat 03 Oct 2015 08:51:52 PM UTC, original submission:

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 'gnu.kawa.lispexpr.BracketApply@370e6c0e' 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$))

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bothner (Posted a comment)
  • -unavailable- added by leigharlie (Original poster)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 07 Oct 2015 08:05:41 PM UTCbothnerStatusNone=>Fixed
      Assigned toNone=>bothner
      Open/ClosedOpen=>Closed
    Sun 04 Oct 2015 02:11:01 PM UTCleigharlieCarbon-Copy-=>Added leigharlie

    Back to the top


    Powered by Savane 3.1-cleanup1