unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* GOOPS question
@ 2021-04-29 23:10 Damien Mattei
  2021-04-30  5:52 ` Atom X
                   ` (3 more replies)
  0 siblings, 4 replies; 23+ messages in thread
From: Damien Mattei @ 2021-04-29 23:10 UTC (permalink / raw)
  To: guile-user

hi,
i want to create a growable vector class in Guile,
such as std::vector or python list,
first i do not know if it exist already? seems not

i want to use GOOPS but i do not understand how the superclass could be
accessed,used, instanciate...
for example in the doc there is:
(define-class <my-complex> (<number>) r i #:name "Complex")

seems <number> superclass is of no use

for my growable vector i would like to use array as superclass?
but perhaps should it be just a slot as array are a subset of growable
array ,so a subclass

anyway if i write something ike that:
(define-class <gvector> (<array>) .....
how can i use the <array> object?

i think perhaps i should not define a superclass or <object> as super
class....
any advice welcome...

Damien


^ permalink raw reply	[flat|nested] 23+ messages in thread
[parent not found: <Pine.GSO.4.05.10207071043010.9685-100000@sallust.ida.ing.tu-bs.de>]
* goops question
@ 2002-07-07  8:45 Dirk Herrmann
  0 siblings, 0 replies; 23+ messages in thread
From: Dirk Herrmann @ 2002-07-07  8:45 UTC (permalink / raw)


Hi,

can some of the goops experts please confirm:

"define-class, define-generic and define-accessor can only be used at the
top level"

Best regards, 
Dirk Herrmann


_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-user


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

end of thread, other threads:[~2021-05-10 12:22 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-29 23:10 GOOPS question Damien Mattei
2021-04-30  5:52 ` Atom X
2021-04-30  7:55 ` Mikael Djurfeldt
2021-05-02  0:07   ` Damien Mattei
2021-05-02 10:14     ` Damien Mattei
2021-05-02 10:26       ` Mikael Djurfeldt
2021-05-02 10:58         ` Damien Mattei
2021-05-02 10:34       ` Damien Mattei
2021-05-02 10:35       ` tomas
2021-05-02 10:21     ` Mikael Djurfeldt
2021-05-08 21:11       ` Damien Mattei
2021-05-10 12:22         ` Mikael Djurfeldt
2021-04-30  7:57 ` Linus Björnstam
2021-04-30  9:47   ` Damien Mattei
2021-04-30 10:43     ` Mikael Djurfeldt
2021-04-30 11:08 ` Mikael Djurfeldt
2021-04-30 12:19   ` Stefan Israelsson Tampe
2021-04-30 14:50     ` Mikael Djurfeldt
2021-04-30 15:15       ` Mikael Djurfeldt
     [not found] <Pine.GSO.4.05.10207071043010.9685-100000@sallust.ida.ing.tu-bs.de>
2002-07-08 18:26 ` goops question Marius Vollmer
     [not found] ` <87fzyu9iu0.fsf@zagadka.ping.de>
2002-07-08 19:59   ` Dirk Herrmann
2002-07-09 21:17   ` Neil Jerram
  -- strict thread matches above, loose matches on Subject: below --
2002-07-07  8:45 Dirk Herrmann

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