From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Panicz Maciej Godek Newsgroups: gmane.lisp.guile.user Subject: Module reflection and the list of bound symbols Date: Fri, 28 Sep 2012 19:37:17 +0200 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1348853858 22247 80.91.229.3 (28 Sep 2012 17:37:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 28 Sep 2012 17:37:38 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Fri Sep 28 19:37:41 2012 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1THeVK-0001Oz-Bl for guile-user@m.gmane.org; Fri, 28 Sep 2012 19:37:34 +0200 Original-Received: from localhost ([::1]:60174 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1THeVE-0005p6-TD for guile-user@m.gmane.org; Fri, 28 Sep 2012 13:37:28 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:35815) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1THeV8-0005nw-V4 for guile-user@gnu.org; Fri, 28 Sep 2012 13:37:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1THeV4-0003kO-SL for guile-user@gnu.org; Fri, 28 Sep 2012 13:37:22 -0400 Original-Received: from mail-la0-f41.google.com ([209.85.215.41]:44323) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1THeV4-0003jQ-JK for guile-user@gnu.org; Fri, 28 Sep 2012 13:37:18 -0400 Original-Received: by lagp5 with SMTP id p5so1196327lag.0 for ; Fri, 28 Sep 2012 10:37:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=4D91ZascrLuoupmXJ4qUnZ4/2+AzrY8dfnwLYuWiXJc=; b=bPJ54n+SmSzn5AdE62MEfp9/hx7xags7NbGsU7iOI9o0Q9ISRRBo/aNd0JFqmnIHTj iy/pG33lwIyfAe40A47WZTrcBWuYMoNiAlboQTZJCiY+k+F6EiCW84ilqm1LvGXSy/ye rZIcNu30aGnApUp0FSYkySHG3i/jum/tXZVihUmoPF5lcEfrICnetl+6loy7KhdbBGFs ITM5AvEjmksYBSA0UlsXpvwU/7m8oT58R9lpIAKZbKd1wHaCf7x5U8m+HPqX3W0c3cRe A12QvhG+nuMXheO1leqJ/xu7EUiGuTUkGBB8y/L1d8OI1RuC7tSqO/6e19Gg79rayzk6 iCRw== Original-Received: by 10.152.132.133 with SMTP id ou5mr6435701lab.45.1348853837455; Fri, 28 Sep 2012 10:37:17 -0700 (PDT) Original-Received: by 10.152.20.3 with HTTP; Fri, 28 Sep 2012 10:37:17 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.215.41 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:9597 Archived-At: Hello, In guile there seem to be many ways of querying whether a certain symbol is bound in a given module/environment, like `defined?', `module-symbol-binding', `module-variable' etc. On the other hand, there is no way (or I haven't found one) to list the bound symbols explicitly. It seems tempting to have a reflection function `module-symbols' or `environment-symbols' that would return the names of bound symbols, or to have functions like environment->list or module->list that would return assoc lists mapping symbols to their values. I've been wondering whether the lack of such functions is deliberate, or if there's a chance that they could be added some time in the future. (Or maybe I just overlooked something, and they are already available?) Yours, Maciek