Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion documentation strings of lexically scoped functions

Received: by 10.68.136.40 with SMTP id px8mr1391078pbb.1.1329326513092;
        Wed, 15 Feb 2012 09:21:53 -0800 (PST)
MIME-Version: 1.0
Path: wr5ni28659pbc.0!nntp.google.com!news1.google.com!news.glorb.com!feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Barry Margolin <bar...@alum.mit.edu>
Newsgroups: comp.lang.lisp
Subject: Re: documentation strings of lexically scoped functions
Date: Wed, 15 Feb 2012 12:21:52 -0500
Organization: A noiseless patient Spider
Lines: 21
Message-ID: <barmar-E287AD.12215215022012@news.eternal-september.org>
References: <1ba20170-33aa-4ded-90f6-8667d1fe7d2c@l1g2000vbc.googlegroups.com>
Injection-Info: barmar.motzarella.org; posting-host="ePtxJaRXJPFeIWBMlKfZaA";
	logging-data="24585"; mail-complaints-to="ab...@eternal-september.org";	posting-account="U2FsdGVkX1+9ohhq/u/aXtZIK38qyv3k"
User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X)
Cancel-Lock: sha1:+OaFTsPdZekl8cPV8Wg6hcFjnQo=

In article 
<1ba20170-33aa-4ded-90f6-8667d1fe7...@l1g2000vbc.googlegroups.com>,
 kodifik <kodi...@eurogaran.com> wrote:

> Out of curiosity :
> In common lisp, functions created by 'flet' or 'labels' are allowed to
> have doc strings, as any other function.
> But they are not accessible from outside.
> Are those doc strings useful ?
> Are they used?
> If so... how? Can anyone provide some example-s?

Some implementations provide extensions that allow you to access lexical 
functions.  E.g. IIRC, Symbolics CL had names something like (:INTERNAL 
<containing-fun> <internal-fun>).  You could pass them to operators like 
DISASSEMBLE, TRACE, and DOCUMENTATION.

-- 
Barry Margolin, bar...@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***