From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b6f375aab22440eb,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-03-17 13:27:49 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!feed.news.nacamar.de!newsfeed.vmunix.org!news-FFM2.ecrc.net!news.iks-jena.de!not-for-mail From: Lutz Donnerhacke Newsgroups: comp.lang.ada Subject: [Spark] Returning unkown sized array Date: Mon, 17 Mar 2003 21:27:48 +0000 (UTC) Organization: IKS GmbH Jena Message-ID: NNTP-Posting-Host: belenus.iks-jena.de X-Trace: branwen.iks-jena.de 1047936468 15832 217.17.192.34 (17 Mar 2003 21:27:48 GMT) X-Complaints-To: usenet@iks-jena.de NNTP-Posting-Date: Mon, 17 Mar 2003 21:27:48 +0000 (UTC) User-Agent: slrn/0.9.7.4 (Linux) Xref: archiver1.google.com comp.lang.ada:35424 Date: 2003-03-17T21:27:48+00:00 List-Id: 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?