comp.lang.ada
 help / color / mirror / Atom feed
From: Stephen Leake <stephen_leake@stephe-leake.org>
Subject: Re: Create a procedure with multiple arguments ...
Date: Mon, 07 Jan 2008 05:26:13 -0500
Date: 2008-01-07T05:26:13-05:00	[thread overview]
Message-ID: <umyriq6d6.fsf@stephe-leake.org> (raw)
In-Reply-To: f1400d6d-97a4-4803-946d-b44bc96a15cf@1g2000hsl.googlegroups.com

kug1977@web.de writes:

> Hi @ all,
>
> I'm a beginner in Ada and have the following problem:
>
> - I'm using GNAT 4.3 on a MacOS X 10.4. and develop on the
> OpenFirmware Interface.
> - To connect to the Firmware, the IEEE 1275 define an Procedure call-
> methode(), which can have up multiple arguments. IEEE 1275 define call-
> method as followed:
>
> IN: [string] method, ihandle, stack-arg1, ..., stack-argP
> OUT: catch-result, stack-result1, ..., stack-resultQ
> <snip>
>
> In C, this is written as followed: static void *of_call(const char
> *service, int nargs, int nret, ...), but how can I write such a thing
> in Ada?

The short answer is "you can't".

You can declare several overloaded procedures, each with different
arguments.

-- 
-- Stephe



  reply	other threads:[~2008-01-07 10:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-04 20:28 Create a procedure with multiple arguments kug1977
2008-01-07 10:26 ` Stephen Leake [this message]
2008-01-07 21:09   ` kug1977
2008-01-08  5:23 ` Steve
2008-01-08 15:22   ` kug1977
replies disabled

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