From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Linus_Bj=C3=B6rnstam?= Newsgroups: gmane.lisp.guile.user Subject: Re: GOOPS question Date: Fri, 30 Apr 2021 09:57:06 +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="17286"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Cyrus-JMAP/3.5.0-alpha0-403-gbc3c488b23-fm-20210419.005-gbc3c488b To: "Damien Mattei" , guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Fri Apr 30 09:57:47 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 1lcO1z-0004QB-1V for guile-user@m.gmane-mx.org; Fri, 30 Apr 2021 09:57:47 +0200 Original-Received: from localhost ([::1]:39600 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lcO1y-0006JW-3d for guile-user@m.gmane-mx.org; Fri, 30 Apr 2021 03:57:46 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60944) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lcO1n-0006JM-L6 for guile-user@gnu.org; Fri, 30 Apr 2021 03:57:35 -0400 Original-Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:42955) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lcO1k-00020e-Hd for guile-user@gnu.org; Fri, 30 Apr 2021 03:57:35 -0400 Original-Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 2BFE0137A; Fri, 30 Apr 2021 03:57:28 -0400 (EDT) Original-Received: from imap42 ([10.202.2.92]) by compute6.internal (MEProxy); Fri, 30 Apr 2021 03:57:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.se; h= mime-version:message-id:in-reply-to:references:date:from:to :subject:content-type:content-transfer-encoding; s=fm3; bh=7KAT/ bScD6LTv1ssYNE2B0KOaDI0dl8665un4peMQqM=; b=q4TqlU4ZizTzmOa/AWron nNkWEwZpwHnpoWvgOdGGegXFMSWprGpRt2Fy7k6+lT3VPu5DK4UdEXkRwLCNLXmx vFrBuJivbnj0+7zVhT4LvR8a36AUjsWtymPKUVAZ5iMJjZqGPTd6/IlgvgIfP22W RsGXew7wRR+xk8Q5afPks5zgp6bfVexzpPhv3jSEpM3umoxc8sN/RRQ70jyhNYb1 Po5fsQkSMWV0OltPTvq4Zr//OWiVV9AEcPtMJNU/bkIvgqey5OAdnR9x3JvvwLEV tHb3+pPVLzc93isSuqpkw1hIcUez3uMjcalejSU5fx1gZt6v+buRyKFVoNNlrWXN w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=7KAT/bScD6LTv1ssYNE2B0KOaDI0dl8665un4peMQ qM=; b=tgULfV7gS95d+G+A9imEd5oVA3sHOq7xTQnhB1tgQBsBxWkmjGOIyHGv6 LF3vcqjiaISSu469GpLpAuHmVMG8K60JJ+9ojeoddqvD7H8Nrm7K436RHpQlI7tX fen9adf06EyT7+dbqBtTtgV2uFgreD2fR73RJJoDA9D0Q7H4vauTYkxjoriMhFXF CpsIzzo2pb/1vVzcLyr6qQafx6FQF35T3Kwj0ePHNYuBhChn7ZUC3iBLoE24W3D6 WyIejt4LSBiXOASy3cZovy4wsmF4Qdgdx8qVeNaI5NB/L6cTQcsPFb9z5v3iFfeS Ja4uB6y/EumIFl9JkUCIpbYyGHQIw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvddvhedguddvgecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvufgtgfesthhqredtreerjeenucfhrhhomhepnfhi nhhushgpuehjnphrnhhsthgrmhcuoehlihhnuhhsrdhinhhtvghrnhgvthesfhgrshhtmh grihhlrdhsvgeqnecuggftrfgrthhtvghrnhepudfgtdekveeuheffleevvdefueeuueei gfeuveehkeefffejkeejuefgueelfeevnecuffhomhgrihhnpehstghhvghmvghrshdroh hrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehl ihhnuhhsrdhinhhtvghrnhgvthesfhgrshhtmhgrihhlrdhsvg X-ME-Proxy: Original-Received: by mailuser.nyi.internal (Postfix, from userid 501) id 7DEF6310005F; Fri, 30 Apr 2021 03:57:27 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface In-Reply-To: Received-SPF: pass client-ip=64.147.123.25; envelope-from=linus.internet@fastmail.se; helo=wout2-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-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:17482 Archived-At: 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 implentatio= n is probably trivially portable: https://srfi.schemers.org/srfi-214/srf= i-214.html --=20 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 >=20 > i want to use GOOPS but i do not understand how the superclass could b= e > accessed,used, instanciate... > for example in the doc there is: > (define-class () r i #:name "Complex") >=20 > seems superclass is of no use >=20 > 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 >=20 > anyway if i write something ike that: > (define-class () ..... > how can i use the object? >=20 > i think perhaps i should not define a superclass or as super > class.... > any advice welcome... >=20 > Damien >=20