This is the mail archive of the kawa@sourceware.org mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Where a error?


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]