Re: Pre-Scheme static allocation

Michael Sperber <[email protected]> Sat, 24 Oct 2015 13:44:13 +0200
Newsgroups gmane.lisp.scheme.scheme48
Message-ID <[email protected]>
Thomas Hintz <[email protected]> writes:

> Greetings,
>
> Is it possible for Pre-Scheme to generate static array allocations? I'm
> looking for something like:
>
> char hello[] = "Hello, world.";

You mean:

(define hello "Hello, world.")

?  (Probably not, but I'm not really sure what you mean.)

> Also, if I attempt to pass a string directly into a function I get a
> type error:
>
> type mismatch
> address
> *char

There are:

char-pointer->string
char-pointer->nul-terminated-string

... to convert from an address to a string.

(You probably want the latter.)

-- 
Regards,
Mike