public inbox for kawa@sourceware.org
 help / color / mirror / Atom feed
* class definition
@ 2023-10-15 23:21 Damien Mattei
  2023-10-15 23:51 ` Per Bothner
  0 siblings, 1 reply; 5+ messages in thread
From: Damien Mattei @ 2023-10-15 23:21 UTC (permalink / raw)
  To: kawa mailing list

(module-name matrix)


(define-simple-class matrix ()

  (v ::vector init-keyword: v:)

  ((*init* (vParam ::vector))
   (set! v vParam))

  )

 (require matrix)
/Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/kawa/matrix.scm:12:6:
invalid argument list for slot 'v' args:null

what is wrong with that?

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: class definition
  2023-10-15 23:21 class definition Damien Mattei
@ 2023-10-15 23:51 ` Per Bothner
  2023-10-16  6:11   ` Damien Mattei
  0 siblings, 1 reply; 5+ messages in thread
From: Per Bothner @ 2023-10-15 23:51 UTC (permalink / raw)
  To: Damien Mattei, kawa mailing list



On 10/15/23 16:21, Damien Mattei via Kawa wrote:
>   (require matrix)
> /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/kawa/matrix.scm:12:6:
> invalid argument list for slot 'v' args:null
> 
> what is wrong with that?

I don't know. I couldn't reproduce it using the current git master.

Note that according to the manual, init-keyword: is ignored.
-- 
	--Per Bothner
per@bothner.com   http://per.bothner.com/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: class definition
  2023-10-15 23:51 ` Per Bothner
@ 2023-10-16  6:11   ` Damien Mattei
  2023-10-16  6:23     ` Damien Mattei
  0 siblings, 1 reply; 5+ messages in thread
From: Damien Mattei @ 2023-10-16  6:11 UTC (permalink / raw)
  To: Per Bothner; +Cc: kawa mailing list

it was my --r5rs flag that was causing the problem:

(base) mattei@MacBook-Pro-Touch-Bar kawa % kawa
#|kawa:1|# (require 2d-vector)
#|kawa:2|# (require matrix)
#|kawa:3|# (exit)
(base) mattei@MacBook-Pro-Touch-Bar kawa % kawa --r6rs
#|kawa:1|# (require 2d-vector)
/Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/kawa/2d-vector.scm:2:6:
invalid argument list for slot 'x' args:null
#|kawa:2|# (exit)
(base) mattei@MacBook-Pro-Touch-Bar kawa % kawa --r7rs
#|kawa:1|# (require 2d-vector)
/Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/kawa/2d-vector.scm:2:6:
invalid argument list for slot 'x' args:null

i use it for has table compatibility, now the problem should be with
hash table,i suppose requiring the good hashtable srfi library will
solve that

On Mon, Oct 16, 2023 at 1:51 AM Per Bothner <per@bothner.com> wrote:
>
>
>
> On 10/15/23 16:21, Damien Mattei via Kawa wrote:
> >   (require matrix)
> > /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/kawa/matrix.scm:12:6:
> > invalid argument list for slot 'v' args:null
> >
> > what is wrong with that?
>
> I don't know. I couldn't reproduce it using the current git master.
>
> Note that according to the manual, init-keyword: is ignored.
> --
>         --Per Bothner
> per@bothner.com   http://per.bothner.com/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: class definition
  2023-10-16  6:11   ` Damien Mattei
@ 2023-10-16  6:23     ` Damien Mattei
  2023-10-16  6:24       ` Damien Mattei
  0 siblings, 1 reply; 5+ messages in thread
From: Damien Mattei @ 2023-10-16  6:23 UTC (permalink / raw)
  To: Per Bothner; +Cc: kawa mailing list

effectively there was no more need of --r5rs flag:


(require 'srfi-1) ; any,every
(require 'srfi-69) ;; hash table

;; try include , use include-relative if problems
(include "../Scheme-PLUS-for-Kawa/rec.scm") ; rec does  not exist in
Kawa (no SRFI 31)
(include "../Scheme-PLUS-for-Kawa/def.scm")
(include "../Scheme-PLUS-for-Kawa/set-values-plus.scm")
(include "../Scheme-PLUS-for-Kawa/for_next_step.scm")
(include "../Scheme-PLUS-for-Kawa/declare.scm")
(include "../Scheme-PLUS-for-Kawa/condx.scm")
(include "../Scheme-PLUS-for-Kawa/block.scm")
(include "../Scheme-PLUS-for-Kawa/not-equal.scm")
(include "../Scheme-PLUS-for-Kawa/exponential.scm")
(include "../Scheme-PLUS-for-Kawa/while-do-when-unless.scm")
(include "../Scheme-PLUS-for-Kawa/repeat-until.scm")
(include "../Scheme-PLUS-for-Kawa/modulo.scm")
(include "../Scheme-PLUS-for-Kawa/bitwise.scm")


(include "../Scheme-PLUS-for-Kawa/slice.scm")

(include "../Scheme-PLUS-for-Kawa/scheme-infix.scm")

(include "../Scheme-PLUS-for-Kawa/assignment.scm")
(include "../Scheme-PLUS-for-Kawa/apply-square-brackets.scm")

(include "../Scheme-PLUS-for-Kawa/array.scm")




(base) mattei@MacBook-Pro-Touch-Bar AI_Deep_Learning % kawa
-Dkawa.import.path=".:/Users/mattei/Dropbox/git/Scheme-PLUS-for-Kawa"
#|kawa:1|# (load
"exo_retropropagationNhidden_layers_matrix_v2_by_vectors4kawa+.scm")
/Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/assignment.scm:640:7:
warning - void-valued expression where value is needed
/Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/assignment.scm:669:7:
warning - void-valued expression where value is needed
/Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/assignment.scm:675:7:
warning - void-valued expression where value is needed
/Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/assignment.scm:818:8:
warning - void-valued expression where value is needed
/Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/assignment.scm:824:8:
warning - void-valued expression where value is needed
/Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/assignment.scm:318:13:
warning - no declaration seen for parse-square-brackets-arguments
/Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/assignment.scm:403:43:
warning - no declaration seen for bracket-apply
/Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/assignment.scm:407:43:
warning - no declaration seen for bracket-apply
/Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/assignment.scm:466:24:
warning - no declaration seen for
find-setter-for-overloaded-square-brackets
/Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/assignment.scm:546:5:
warning - no declaration seen for function-array-n-dim-set!
/Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/assignment.scm:553:21:
warning - no declaration seen for
find-setter-for-overloaded-square-brackets
/Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/assignment.scm:709:9:
warning - no declaration seen for function-array-n-dim-set!
/Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/assignment.scm:784:44:
warning - no declaration seen for bracket-apply
/Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/assignment.scm:788:44:
warning - no declaration seen for bracket-apply
/Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/assignment.scm:837:9:
warning - no declaration seen for function-array-n-dim-set!
/Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/assignment.scm:927:9:
warning - no declaration seen for function-array-n-dim-set!
/Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/assignment.scm:946:8:
warning - no declaration seen for function-array-n-dim-set!
/Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/apply-square-brackets.scm:332:7:
warning - void-valued expression where value is needed
/Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/apply-square-brackets.scm:337:7:
warning - void-valued expression where value is needed
/Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/apply-square-brackets.scm:404:20:
warning - type gnu.lists.AbstractSequence is incompatible with
required type abstract-string
/Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/apply-square-brackets.scm:407:7:
warning - void-valued expression where value is needed
/Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/apply-square-brackets.scm:409:20:
warning - type gnu.lists.AbstractSequence is incompatible with
required type abstract-string
/Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/apply-square-brackets.scm:412:7:
warning - void-valued expression where value is needed
/Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/apply-square-brackets.scm:500:7:
warning - void-valued expression where value is needed
/Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/apply-square-brackets.scm:506:7:
warning - void-valued expression where value is needed
/Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/apply-square-brackets.scm:547:7:
warning - void-valued expression where value is needed
/Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/apply-square-brackets.scm:554:7:
warning - void-valued expression where value is needed
/Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/apply-square-brackets.scm:609:20:
warning - type gnu.lists.AbstractSequence is incompatible with
required type abstract-string
/Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/apply-square-brackets.scm:612:7:
warning - void-valued expression where value is needed
/Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/apply-square-brackets.scm:615:20:
warning - type gnu.lists.AbstractSequence is incompatible with
required type abstract-string
/Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/apply-square-brackets.scm:618:7:
warning - void-valued expression where value is needed
/Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/apply-square-brackets.scm:657:20:
warning - type gnu.lists.AbstractSequence is incompatible with
required type abstract-string
/Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/apply-square-brackets.scm:660:7:
warning - void-valued expression where value is needed
/Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/apply-square-brackets.scm:664:20:
warning - type gnu.lists.AbstractSequence is incompatible with
required type abstract-string
/Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/apply-square-brackets.scm:667:7:
warning - void-valued expression where value is needed
/Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/apply-square-brackets.scm:756:5:
warning - void-valued expression where value is needed
/Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/apply-square-brackets.scm:763:5:
warning - void-valued expression where value is needed
/Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/apply-square-brackets.scm:
note - skipped 0 errors, 13 warnings, 0 notes
/Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/array.scm:69:6:
warning - void-valued expression where value is needed

those are only warnings and not errors.

On Mon, Oct 16, 2023 at 8:11 AM Damien Mattei <damien.mattei@gmail.com> wrote:
>
> it was my --r5rs flag that was causing the problem:
>
> (base) mattei@MacBook-Pro-Touch-Bar kawa % kawa
> #|kawa:1|# (require 2d-vector)
> #|kawa:2|# (require matrix)
> #|kawa:3|# (exit)
> (base) mattei@MacBook-Pro-Touch-Bar kawa % kawa --r6rs
> #|kawa:1|# (require 2d-vector)
> /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/kawa/2d-vector.scm:2:6:
> invalid argument list for slot 'x' args:null
> #|kawa:2|# (exit)
> (base) mattei@MacBook-Pro-Touch-Bar kawa % kawa --r7rs
> #|kawa:1|# (require 2d-vector)
> /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/kawa/2d-vector.scm:2:6:
> invalid argument list for slot 'x' args:null
>
> i use it for has table compatibility, now the problem should be with
> hash table,i suppose requiring the good hashtable srfi library will
> solve that
>
> On Mon, Oct 16, 2023 at 1:51 AM Per Bothner <per@bothner.com> wrote:
> >
> >
> >
> > On 10/15/23 16:21, Damien Mattei via Kawa wrote:
> > >   (require matrix)
> > > /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/kawa/matrix.scm:12:6:
> > > invalid argument list for slot 'v' args:null
> > >
> > > what is wrong with that?
> >
> > I don't know. I couldn't reproduce it using the current git master.
> >
> > Note that according to the manual, init-keyword: is ignored.
> > --
> >         --Per Bothner
> > per@bothner.com   http://per.bothner.com/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: class definition
  2023-10-16  6:23     ` Damien Mattei
@ 2023-10-16  6:24       ` Damien Mattei
  0 siblings, 0 replies; 5+ messages in thread
From: Damien Mattei @ 2023-10-16  6:24 UTC (permalink / raw)
  To: Per Bothner; +Cc: kawa mailing list

the starting line for kawa is without --r5rs:

kawa -Dkawa.import.path=".:/Users/mattei/Dropbox/git/Scheme-PLUS-for-Kawa"

On Mon, Oct 16, 2023 at 8:23 AM Damien Mattei <damien.mattei@gmail.com> wrote:
>
> effectively there was no more need of --r5rs flag:
>
>
> (require 'srfi-1) ; any,every
> (require 'srfi-69) ;; hash table
>
> ;; try include , use include-relative if problems
> (include "../Scheme-PLUS-for-Kawa/rec.scm") ; rec does  not exist in
> Kawa (no SRFI 31)
> (include "../Scheme-PLUS-for-Kawa/def.scm")
> (include "../Scheme-PLUS-for-Kawa/set-values-plus.scm")
> (include "../Scheme-PLUS-for-Kawa/for_next_step.scm")
> (include "../Scheme-PLUS-for-Kawa/declare.scm")
> (include "../Scheme-PLUS-for-Kawa/condx.scm")
> (include "../Scheme-PLUS-for-Kawa/block.scm")
> (include "../Scheme-PLUS-for-Kawa/not-equal.scm")
> (include "../Scheme-PLUS-for-Kawa/exponential.scm")
> (include "../Scheme-PLUS-for-Kawa/while-do-when-unless.scm")
> (include "../Scheme-PLUS-for-Kawa/repeat-until.scm")
> (include "../Scheme-PLUS-for-Kawa/modulo.scm")
> (include "../Scheme-PLUS-for-Kawa/bitwise.scm")
>
>
> (include "../Scheme-PLUS-for-Kawa/slice.scm")
>
> (include "../Scheme-PLUS-for-Kawa/scheme-infix.scm")
>
> (include "../Scheme-PLUS-for-Kawa/assignment.scm")
> (include "../Scheme-PLUS-for-Kawa/apply-square-brackets.scm")
>
> (include "../Scheme-PLUS-for-Kawa/array.scm")
>
>
>
>
> (base) mattei@MacBook-Pro-Touch-Bar AI_Deep_Learning % kawa
> -Dkawa.import.path=".:/Users/mattei/Dropbox/git/Scheme-PLUS-for-Kawa"
> #|kawa:1|# (load
> "exo_retropropagationNhidden_layers_matrix_v2_by_vectors4kawa+.scm")
> /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/assignment.scm:640:7:
> warning - void-valued expression where value is needed
> /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/assignment.scm:669:7:
> warning - void-valued expression where value is needed
> /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/assignment.scm:675:7:
> warning - void-valued expression where value is needed
> /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/assignment.scm:818:8:
> warning - void-valued expression where value is needed
> /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/assignment.scm:824:8:
> warning - void-valued expression where value is needed
> /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/assignment.scm:318:13:
> warning - no declaration seen for parse-square-brackets-arguments
> /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/assignment.scm:403:43:
> warning - no declaration seen for bracket-apply
> /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/assignment.scm:407:43:
> warning - no declaration seen for bracket-apply
> /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/assignment.scm:466:24:
> warning - no declaration seen for
> find-setter-for-overloaded-square-brackets
> /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/assignment.scm:546:5:
> warning - no declaration seen for function-array-n-dim-set!
> /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/assignment.scm:553:21:
> warning - no declaration seen for
> find-setter-for-overloaded-square-brackets
> /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/assignment.scm:709:9:
> warning - no declaration seen for function-array-n-dim-set!
> /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/assignment.scm:784:44:
> warning - no declaration seen for bracket-apply
> /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/assignment.scm:788:44:
> warning - no declaration seen for bracket-apply
> /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/assignment.scm:837:9:
> warning - no declaration seen for function-array-n-dim-set!
> /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/assignment.scm:927:9:
> warning - no declaration seen for function-array-n-dim-set!
> /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/assignment.scm:946:8:
> warning - no declaration seen for function-array-n-dim-set!
> /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/apply-square-brackets.scm:332:7:
> warning - void-valued expression where value is needed
> /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/apply-square-brackets.scm:337:7:
> warning - void-valued expression where value is needed
> /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/apply-square-brackets.scm:404:20:
> warning - type gnu.lists.AbstractSequence is incompatible with
> required type abstract-string
> /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/apply-square-brackets.scm:407:7:
> warning - void-valued expression where value is needed
> /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/apply-square-brackets.scm:409:20:
> warning - type gnu.lists.AbstractSequence is incompatible with
> required type abstract-string
> /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/apply-square-brackets.scm:412:7:
> warning - void-valued expression where value is needed
> /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/apply-square-brackets.scm:500:7:
> warning - void-valued expression where value is needed
> /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/apply-square-brackets.scm:506:7:
> warning - void-valued expression where value is needed
> /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/apply-square-brackets.scm:547:7:
> warning - void-valued expression where value is needed
> /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/apply-square-brackets.scm:554:7:
> warning - void-valued expression where value is needed
> /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/apply-square-brackets.scm:609:20:
> warning - type gnu.lists.AbstractSequence is incompatible with
> required type abstract-string
> /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/apply-square-brackets.scm:612:7:
> warning - void-valued expression where value is needed
> /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/apply-square-brackets.scm:615:20:
> warning - type gnu.lists.AbstractSequence is incompatible with
> required type abstract-string
> /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/apply-square-brackets.scm:618:7:
> warning - void-valued expression where value is needed
> /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/apply-square-brackets.scm:657:20:
> warning - type gnu.lists.AbstractSequence is incompatible with
> required type abstract-string
> /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/apply-square-brackets.scm:660:7:
> warning - void-valued expression where value is needed
> /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/apply-square-brackets.scm:664:20:
> warning - type gnu.lists.AbstractSequence is incompatible with
> required type abstract-string
> /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/apply-square-brackets.scm:667:7:
> warning - void-valued expression where value is needed
> /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/apply-square-brackets.scm:756:5:
> warning - void-valued expression where value is needed
> /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/apply-square-brackets.scm:763:5:
> warning - void-valued expression where value is needed
> /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/apply-square-brackets.scm:
> note - skipped 0 errors, 13 warnings, 0 notes
> /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/../Scheme-PLUS-for-Kawa/array.scm:69:6:
> warning - void-valued expression where value is needed
>
> those are only warnings and not errors.
>
> On Mon, Oct 16, 2023 at 8:11 AM Damien Mattei <damien.mattei@gmail.com> wrote:
> >
> > it was my --r5rs flag that was causing the problem:
> >
> > (base) mattei@MacBook-Pro-Touch-Bar kawa % kawa
> > #|kawa:1|# (require 2d-vector)
> > #|kawa:2|# (require matrix)
> > #|kawa:3|# (exit)
> > (base) mattei@MacBook-Pro-Touch-Bar kawa % kawa --r6rs
> > #|kawa:1|# (require 2d-vector)
> > /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/kawa/2d-vector.scm:2:6:
> > invalid argument list for slot 'x' args:null
> > #|kawa:2|# (exit)
> > (base) mattei@MacBook-Pro-Touch-Bar kawa % kawa --r7rs
> > #|kawa:1|# (require 2d-vector)
> > /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/kawa/2d-vector.scm:2:6:
> > invalid argument list for slot 'x' args:null
> >
> > i use it for has table compatibility, now the problem should be with
> > hash table,i suppose requiring the good hashtable srfi library will
> > solve that
> >
> > On Mon, Oct 16, 2023 at 1:51 AM Per Bothner <per@bothner.com> wrote:
> > >
> > >
> > >
> > > On 10/15/23 16:21, Damien Mattei via Kawa wrote:
> > > >   (require matrix)
> > > > /Users/mattei/Library/CloudStorage/Dropbox/git/AI_Deep_Learning/kawa/matrix.scm:12:6:
> > > > invalid argument list for slot 'v' args:null
> > > >
> > > > what is wrong with that?
> > >
> > > I don't know. I couldn't reproduce it using the current git master.
> > >
> > > Note that according to the manual, init-keyword: is ignored.
> > > --
> > >         --Per Bothner
> > > per@bothner.com   http://per.bothner.com/

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-10-16  6:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-15 23:21 class definition Damien Mattei
2023-10-15 23:51 ` Per Bothner
2023-10-16  6:11   ` Damien Mattei
2023-10-16  6:23     ` Damien Mattei
2023-10-16  6:24       ` Damien Mattei

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).