[Prev][Next][Index][Thread]

Another one: strings in method definitions?



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: