comp.lang.ada
 help / color / mirror / Atom feed
From: Lutz Donnerhacke <lutz@iks-jena.de>
Subject: [Spark] Returning unkown sized array
Date: Mon, 17 Mar 2003 21:27:48 +0000 (UTC)
Date: 2003-03-17T21:27:48+00:00	[thread overview]
Message-ID: <slrnb7cfek.skc.lutz@belenus.iks-jena.de> (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?



                 reply	other threads:[~2003-03-17 21:27 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
replies disabled

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