unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* Can not create instance of <complex> class
@ 2021-05-11 13:14 dalanicolai
  0 siblings, 0 replies; only message in thread
From: dalanicolai @ 2021-05-11 13:14 UTC (permalink / raw)
  To: guile-user

Footnote (29) of this page
<https://www.gnu.org/software/guile/manual/html_node/Class-Definition.html>
of the manual mentions that the complex is a predefined class in GOOPS.
However when I try to create an instance of the class using

(use-modules (oop goops))
(define test (make <complex>))

guile raises the following exception:

No applicable method for #<<generic> initialize (9)> in call (initialize
#<instance 7fb5dc535680> ())

Searching in guile's source I do find in in the file goops.scm the line

(define-standard-class <complex> (<number>)).

So my question is why the class is predefined while it is not implemented?
It is only because implementation is not yet finished?
Should I design the class myself?

Thanks for your answers!


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-05-11 13:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-11 13:14 Can not create instance of <complex> class dalanicolai

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).