[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: unit
In MzScheme, unit is a reserved word, and MzScheme respects reserved
words. A Scheme implementation isn't expected to do so.
A unit is roughly a module. Unlike a traditional module, a unit doesn't
specify where its imports come from. For that you need to link a unit
explicitly to another unit. The advantage is that you can reuse a module in
several different context w/o editing, copying, etc.
Use DrScheme's help-desk to read up on units.
-- Matthias
X-Authentication-Warning: fast.cs.utah.edu: majordom set sender to owner-plt-scheme@flux.cs.utah.edu using -f
Date: Thu, 17 Feb 2000 14:59:21 +0200 (IST)
From: Miki Tebeka <mtebeka@intel.com>
Reply-To: Miki Tebeka <michael.tebeka@intel.com>
X-X-Sender: mtebeka@hasmsx30.iil.intel.com
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-plt-scheme@fast.cs.utah.edu
Precedence: bulk
Hello All,
I've tried a little example form comp.lang.scheme but got:
> (define (unit) unit)
compile: illegal use of a syntactic form name in: unit
But in STk:
STk> (define (unit) unit)
unit
An in TinyScheme:
> (define (unit) unit)
unit
Who is "right"?
Bye.
------------------------------------------------------------------------------
Smile, damn it, smile.
(lambda (msg)
(case msg
((name) "Miki Tebeka")
((email) "tebeka@lycosmail.com")
((homepage) "http://www.tebeka.freeservers.com")
((quote) "I don't suffer from insanity, I enjoy every minute of it.")))
- References:
- unit
- From: Miki Tebeka <mtebeka@intel.com>