GSOC | Extending Common Lisp support

Charles Turner chturne@gmail.com
Sat Apr 28 20:03:00 GMT 2012


Having a few problems with the transliteration of PrimOps.scm to CL:

I've transliterated

(define (make-string (count :: <int>) ch)
  (make <gnu.lists.FString> count
        (invoke-static <gnu.commonlisp.lang.CommonLisp>
                       'asChar ch)))

into

(defun make-string (count ch)
  (declare (int count))
  (make <gnu.lists.FString> count
	(invoke-static <gnu.commonlisp.lang.CommonLisp>
		       'asChar ch)))

But with the latter I get the following warning:

$ kawa -C primitives.lisp
primitives.lisp:134:9: warning - no declaration seen for <gnu.lists.FString>

Any ideas why that's happening in CL but not Scheme? Adding
defProcStFld("make", "gnu.kawa.reflect.Invoke", "make");
to CommonLisp doesn't seem to make a difference (not that surprising
in hindsight)

Thanks for your time,
Charlie.



More information about the Kawa mailing list