From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Damien Mattei Newsgroups: gmane.lisp.guile.user Subject: Re: GOOPS question Date: Fri, 30 Apr 2021 11:47:36 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22820"; mail-complaints-to="usenet@ciao.gmane.io" To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Fri Apr 30 11:48:16 2021 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lcPku-0005pD-Im for guile-user@m.gmane-mx.org; Fri, 30 Apr 2021 11:48:16 +0200 Original-Received: from localhost ([::1]:45552 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lcPkt-0004Bb-M0 for guile-user@m.gmane-mx.org; Fri, 30 Apr 2021 05:48:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52870) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lcPke-0004BU-OJ for guile-user@gnu.org; Fri, 30 Apr 2021 05:48:00 -0400 Original-Received: from mail-io1-xd36.google.com ([2607:f8b0:4864:20::d36]:46020) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lcPkU-0007Hw-7E for guile-user@gnu.org; Fri, 30 Apr 2021 05:48:00 -0400 Original-Received: by mail-io1-xd36.google.com with SMTP id z14so15042511ioc.12 for ; Fri, 30 Apr 2021 02:47:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=2qjPpaUcYRcFGsUHszbcDN3bkQ5CcYCwMNb0ca7zETQ=; b=EV3OK8bNaITqxvJBw2Hcof3BKwLH8k+nc9kE+Gja/iQEoLurLj9SzScpD3Cf7rHPzB MSpbxak/P3x9DIqjBWvWUX8WMz8aFmsvxdU5ScxCRkvr9LYu3WrBw1BDZT7zy72Qe//m nn/5sHoR0daKSbOs1GXUW/rtOQVP5XBdYA+EtL2/GXUiP1SC38bT0hm9RiXr0aPekfn1 CBeptk28GaB56/Q6bx/Y9TfLlYaG3rJYxeZOz7N7/GLF0I5D1pVnWUGfaiS8tq/gBmTz r7d+LJwkHqvqam66qwTNg4yx6EOXqZQ4/Z1tYnytmV1WhamGtuwh49FtIxYCAorz45In eOLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=2qjPpaUcYRcFGsUHszbcDN3bkQ5CcYCwMNb0ca7zETQ=; b=feIjww9gD5JyX3M6dY2xYpJmGO3TUDH05NgHIVUiIQ2Hx+IkTKE+6CYdHJjQtuz4oS XxTYZ0rUxdHqU9m3skQa/bpoSFJAA8IjUKGvIJ85Wxv71GSz947ad0ze1V8NXZFgXbtF K3UxhWt0JrW1v55Dwt7EYPD8cDsxed9p2osr+dvrvqQwn9/9mlvBUXcc023kpNDUFYgh QTtlViWpMCY2P/4S1GvEmtTabvs+8++KjeYGdlpgEKIoVqlbpYjX2kJ0EmSB8FugBGh+ WD8VYTnMJcoxy5ZhfIXGrQF+NrVZy4bWi2pYPbsB10MO3v+FgwIlD/xmWvptCgmuVAVp 5oyg== X-Gm-Message-State: AOAM533arqR6OXdruNrOPANCGQrcEhvRHME+QgcioQUGBhjPGaQjBCnp vvbWOq3oaZVS2WhZFMNnZnyDD7UxGl/xbeNrdtTL6D4lOeU= X-Google-Smtp-Source: ABdhPJwTDRFm25V4XzCHLuZaCXHkzVV4qKofj2sTVNdDGvMsBApfzz6NflAkZx7JAZYD3zsDOjctiSPxYJO8wHez3m0= X-Received: by 2002:a05:6602:3415:: with SMTP id n21mr3118888ioz.120.1619776067748; Fri, 30 Apr 2021 02:47:47 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::d36; envelope-from=damien.mattei@gmail.com; helo=mail-io1-xd36.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.io gmane.lisp.guile.user:17483 Archived-At: 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=C3=B6rnstam 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=C3=B6rnstam > > 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 () r i #:name "Complex") > > > > seems 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 () ..... > > how can i use the object? > > > > i think perhaps i should not define a superclass or as super > > class.... > > any advice welcome... > > > > Damien > > >