From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.devel Subject: Re: What does an OClosure look like? Date: Wed, 01 Mar 2023 19:46:41 +0100 Message-ID: <871qm848dq.fsf@web.de> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1335"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Mar 01 19:47:38 2023 Return-path: Envelope-to: ged-emacs-devel@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 1pXRUI-00009z-7c for ged-emacs-devel@m.gmane-mx.org; Wed, 01 Mar 2023 19:47:38 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pXRTZ-0006aF-1z; Wed, 01 Mar 2023 13:46:53 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pXRTX-0006ZN-51 for emacs-devel@gnu.org; Wed, 01 Mar 2023 13:46:51 -0500 Original-Received: from mout.web.de ([212.227.17.11]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pXRTV-0002ZJ-Cg for emacs-devel@gnu.org; Wed, 01 Mar 2023 13:46:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=s29768273; t=1677696402; i=michael_heerdegen@web.de; bh=OEnzPLzGciPljN3/Lm6t9dtDU6KeVwJKvodnBLyy3K8=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=u6SkSQzCYZDIeW2JIj3fVtyNzUPMMfHvgs+m+44rsKk0eYe/hUx8J/+kTaLEPL00n cBpbxFdq07JgE3RODU9o/3xZWgI6m8JfUjZ9Rl1WR0MwUixsBskHWLB13S3GEKJHc2 a8xNaw8cxpSeD3rG1QycYXjiJ429QRXk107NuxWjnRbo4fMFUiVz3Rd4XXTMfxv/RM e+6D1GlgU6U56Kw80nDDUcW/mRqf/zFe83cZy9b6WplcKVhylFrz5ZStPyfRlZMiog Qoywox43574zxfRyW92tFPd0eTqzi++lYn6SW+GucvKnhjvH3mJoTkSHpQVGqv3rnp bXYLwITPi84kg== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Original-Received: from drachen.dragon ([84.59.210.57]) by smtp.web.de (mrweb105 [213.165.67.124]) with ESMTPSA (Nemesis) id 1MJnvf-1pDQaJ2UWX-00KDzh; Wed, 01 Mar 2023 19:46:42 +0100 In-Reply-To: (Alan Mackenzie's message of "Fri, 24 Feb 2023 22:08:10 +0000") X-Provags-ID: V03:K1:mWEIwigQasrOB3PBCz15/kWZOs3F3SwWu4uIWhPbHoGAbyJzleH XaplpdZUOZj/5EA4FlHZXELRjUGeBi6mjhpTGLuZ6jY1XSsxSJkutUR9PMMSmsdwOcOycXk q7fEapwabbU2sBlQE9Ro4fY0/qYKuWug6j8CVPnPG4r1PGRs+hUSnIBzJSN/kPMyIWi2aOP XYc+uNnmpCci9Xckyo2tA== UI-OutboundReport: notjunk:1;M01:P0:AAwRvvvwD1g=;qLaRy9dPOACzmW3Y8vAgcNQVZga uj+c5foWmsLqFhYMfA4eNnzN5i4ElFZMm3fSVZSdHrECG8WP2MomviKoH9oANYC0QR8mBw5ee zrSDFD54pV29/I/SdPe24J+OGZ8Ndz17kwrByp158NzBNDbvPKZUgESdqZqlSqJCabIhz6mCt dSxqvoec9MPVz6YIqNsXdgjJq+cLJzkwN5UDlVsVdjZA1ah+3mu8tGW0sLQq41EeqQxByh3LL UE1xdbrjKWy9ygTQVGLlrYQRc3a4UPLWqWyfIIQ0jXYYioi0rqjob7IZzXS05azwNUtH19oZ4 D3E8v3KROJbhrlSdHF/MgsMQdJsWFMP0dZ1W6wTsVYLG6d3uKY9QsM5rnvwEtutRhYFa8GjTO ptG7nZrJDsAQSEZfoFI3HEUGEtAAHPntpKIMaYU/Jgq1YQq1CHdQnLVrhHINnYZOoCxosn512 6HjKTzSRdA32JFmKO8YdTmvF7oH4lyBkwpXn2/XF1WVxRwAoyE0WRhLbrIQCOWijKvMMgAifY xmTxyxpCaYxlsNh0eAvMQ0F/ZywxcmOQRC/IW/lrohXIGhZDCyePNUw4UPKtb3V2SKMQktsqP 94Y1XaWepujYCbYc3ELI48Y7NccjwjkzxysNmJrVfVcVZDJxw/4TZ7pqMeUiLpBZ6Zmsg71Ft 4L2B3gfMJc4TIj5qJDN9Fz0Wqun0XPtzHaXi8MvxnA9rQspnmDBbhwkeX9HxyIfozkEbus8D8 kG9+SRJMXbkcxUad27ZfMthSMQws/2eQ88FBVK72XOovBdikdJT8JeIudQmPZjTRietwQHLT Received-SPF: pass client-ip=212.227.17.11; envelope-from=michael_heerdegen@web.de; helo=mout.web.de 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, 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: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:303884 Archived-At: Alan Mackenzie writes: > Hello, Emacs. > > I'm currently experimenting with the layout of lambda forms. In doing > so, I've hit a cl-assert in oclosure.el. Maybe show your code. > I can't find a description of an oclosure in that source file, nor in > the section in the elisp manual. By description, I mean what an > oclosure structure looks like in terms of conses and lists. AFAIU these are ATM more or less normal function values with some meta data stored at some place that does not change the "behavior" (see `oclosure-type') when funcalling the thing. The cl related part implements the type handling and the semantics of this "meta data" (accessors). A byte code oclosure can't be described in terms of conses and lists of course. What's your use case so that these internal implementation details matter? Michael.