This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
Re: Where a error?
- From: Per Bothner <per at bothner dot com>
- To: Yaroslav Kavenchuk <kavenchuk at gmail dot com>
- Cc: kawa at sourceware dot org
- Date: Sat, 29 Dec 2007 09:23:07 -0800
- Subject: Re: Where a error?
- References: <47750CEF.30305@gmail.com>
Yaroslav Kavenchuk wrote:
(define-simple-class <my-class> (<java.lang.Object> <gnu.text.Printable>)
(name :: <String> init-value: "Hi!")
((print out :: <gnu.lists.Consumer>) :: #!void
(out:write "#!<my-class ")
(out:write name)
(out:write ">")))
#!void is the void value - the same as (values)
You want the void type <void> - the type whose
only value is the void value.
It took me a while to realize this, too. Perhaps
having this be an error would be better.
--
--Per Bothner
per@bothner.com http://per.bothner.com/