thank for your answer but my question was just about use of superclass.... SRFI implementation is too complex for what i want to do now, template is 1 dimension gvector, that's neolithic for me :-) and do not explain use of superclass... Damien
On Fri, Apr 30, 2021 at 9:57 AM Linus Björnstam <linus.inter...@fastmail.se> wrote: > This does not answer your question, but: > > There was just a SRFI released for growable vectors. I don't know about > any interest to have it included in guile, but the reference implentation > is probably trivially portable: > https://srfi.schemers.org/srfi-214/srfi-214.html > > > > -- > Linus Björnstam > > On Fri, 30 Apr 2021, at 01:10, Damien Mattei wrote: > > 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 > > >