[Prev][Next][Index][Thread]
Another one: strings in method definitions?
-
To: info-dylan@ai.mit.edu
-
Subject: Another one: strings in method definitions?
-
From: Nolan Darilek <nolan@ethereal.dhis.org>
-
Date: Tue, 9 May 2000 22:30:02 -0400 (EDT)
-
Organization: The University of Texas at Austin; Austin, Texas
-
Xref: traf.lcs.mit.edu comp.lang.dylan:11998
I have the following method definition:
define method output-c-type
(value :: <c-pointer-type>, name :: <string> = "anonymous", #key anonymous = #t)
=> (result :: <string>)
But, that doesn't work; d2c complains that none of the main method
definition rules work. Removing the default value for name compiles,
but that isn't what I want. I tried 'make(<string>, "anonymous")' and
as(<string>, "anonymous") with no luck.
What obvious point am I missing now? :)
Thanks.
Follow-Ups: