chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] problem in c-string / define-external.


From: Alejandro Forero Cuervo
Subject: Re: [Chicken-users] problem in c-string / define-external.
Date: Mon, 29 May 2006 19:01:36 -0500
User-agent: Mutt/1.5.9i

More weirdness.

If I run the following

    (define-external (foo ((const c-string) arg)) void
      (display arg) (newline))

    ((foreign-safe-lambda* void () "foo(\"text\");"))

I get

    #<pointer 8049514>

instead of the expected

    "text" .

Interestingly, if I use “c-string” instead of “(const c-string)”, it
does work.

Am I assuming something I shouldn't?

Alejo.
http://azul.freaks-unidos.net/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]