Pointers in Slate.

Michael Walter michael.walter at gmail.com
Wed Nov 10 13:13:50 PST 2004


On Wed, 10 Nov 2004 18:15:49 -0300, Pupeno <pupeno at pupeno.com> wrote:
> Je Merkredo Novembro 10 2004 15:45, Brian Rice skribis:
> > I don't know. You took on the responsibility for these decisions when
> > you decided to write a backend. Read the code for files and how
> > external identifiers are passed in and out. Maybe that will give you an
> > idea (basically using asSmallInt), but you still have to make decisions
> > based on how the system you're working on needs to behave - you might
> > need an indirection table or a hash, or something else.
> Ok... I'll make an array on the C side to hold the pointers, indexed... and
> I'll pass the indexes to Slate... but, I'd like to make it dynamic, not
> static...
I don't think you want to do dynamic allocation from C. I can't see
much wrong with just passing the pointer (as long as there is an
integer type in slate which has the size of a pointer).. and then
adding some abstraction to that *in Slate*. But I could be wrong.

Cheers,
Michael




More information about the Slate mailing list