From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Atom X Newsgroups: gmane.lisp.guile.user Subject: Re: GOOPS question Date: Fri, 30 Apr 2021 01:52:56 -0400 Message-ID: <4F71F499-D823-4688-89A6-AFF8D3BF92F6@deadlyhead.com> 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="32562"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: K-9 Mail for Android To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Fri Apr 30 07:53:17 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 1lcM5U-0008NE-OD for guile-user@m.gmane-mx.org; Fri, 30 Apr 2021 07:53:17 +0200 Original-Received: from localhost ([::1]:55502 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lcM5T-0007FO-QD for guile-user@m.gmane-mx.org; Fri, 30 Apr 2021 01:53:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40950) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lcM5J-0007FH-2o for guile-user@gnu.org; Fri, 30 Apr 2021 01:53:05 -0400 Original-Received: from fossa.birch.relay.mailchannels.net ([23.83.209.62]:25946) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lcM5H-0005R9-1k for guile-user@gnu.org; Fri, 30 Apr 2021 01:53:04 -0400 X-Sender-Id: dreamhost|x-authsender|atomx@deadlyhead.com Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 7EA0F7029A7 for ; Fri, 30 Apr 2021 05:52:59 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a32.g.dreamhost.com (100-101-162-41.trex.outbound.svc.cluster.local [100.101.162.41]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 231297029B3 for ; Fri, 30 Apr 2021 05:52:59 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|atomx@deadlyhead.com Original-Received: from pdx1-sub0-mail-a32.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384) by 100.101.162.41 (trex/6.2.1); Fri, 30 Apr 2021 05:52:59 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|atomx@deadlyhead.com X-MailChannels-Auth-Id: dreamhost X-Spicy-Snatch: 57c631c110e9a205_1619761979357_1485280227 X-MC-Loop-Signature: 1619761979357:4161125459 X-MC-Ingress-Time: 1619761979356 Original-Received: from pdx1-sub0-mail-a32.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a32.g.dreamhost.com (Postfix) with ESMTP id D11F089059 for ; Thu, 29 Apr 2021 22:52:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=deadlyhead.com; h=date :in-reply-to:references:mime-version:content-type :content-transfer-encoding:subject:to:from:message-id; s= deadlyhead.com; bh=lptLD8y0ZILQYPhZAr89C+JTT0s=; b=nReFE+ddi/7PI zp5dy+EfjWe4WJUAr4ljn8rrm7u+Zw9h4WF5z/ZW3BWnKj/OGCLcK7RF/VTguJYE Z8kzwNmyp3jALD3DNsNyYzJ+R3fQHR4OkO/N3NMRxNkGf5ivUZ9e2ySqEeNweVKz iZwfoXnFSiOL3AYyTkL5vBhATOv8Xo= Original-Received: from [IPv6:2607:fb90:b078:5d33:a4f6:b04c:cef3:6dd9] (unknown [172.56.23.211]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: atomx@deadlyhead.com) by pdx1-sub0-mail-a32.g.dreamhost.com (Postfix) with ESMTPSA id 74F6789056 for ; Thu, 29 Apr 2021 22:52:58 -0700 (PDT) In-Reply-To: X-DH-BACKEND: pdx1-sub0-mail-a32 Received-SPF: pass client-ip=23.83.209.62; envelope-from=atomx@deadlyhead.com; helo=fossa.birch.relay.mailchannels.net 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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:17480 Archived-At: Hi Damien, On April 29, 2021 7:10:12 PM EDT, 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 > Regarding your immediate need for a growable vector type, Guile implements= VLists , which can take the place of standard lists, but also offer constant- = time index referencing like vectors=2E VLists are functional data structure= s and are thus immutable, but this is natural for idiomatic Scheme code=2E >i want to use GOOPS but i do not understand how the superclass could be >accessed,used, instanciate=2E=2E=2E >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 () =2E=2E=2E=2E=2E >how can i use the object? > >i think perhaps i should not define a superclass or as super >class=2E=2E=2E=2E >any advice welcome=2E=2E=2E > >Damien -- Atom