comp.lang.ada
 help / color / mirror / Atom feed
* [Spark] Returning unkown sized array
@ 2003-03-17 21:27 Lutz Donnerhacke
  0 siblings, 0 replies; only message in thread
From: Lutz Donnerhacke @ 2003-03-17 21:27 UTC (permalink / raw)


How do I define a thin binding to getdent(2) syscall in Spark?
This syscall returns a unknown number of entries into a separate area.
In Ada95 I'd return a array slice. In Spark, this is not possible.

What is the canonical way to deal with this?

Introduce state and return the number (and the state) first, followed by a
procedure call returning all the entries at once?



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-03-17 21:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-17 21:27 [Spark] Returning unkown sized array Lutz Donnerhacke

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox