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-Thread: 103376,86f62fb0f98ad93e X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!feeder3.cambriumusenet.nl!feed.tweaknews.nl!193.201.147.68.MISMATCH!feeder.news-service.com!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Passing Ada Proc as a C Function Pointer Date: Wed, 04 Aug 2010 20:46:00 +0100 Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Date: Wed, 4 Aug 2010 19:46:00 +0000 (UTC) Injection-Info: mx01.eternal-september.org; posting-host="KCXegvZb5vh43D+f3BR6Ew"; logging-data="18648"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX186TFeeckEDVKvBIo4onuGKVBNvhyhF1T0=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (darwin) Cancel-Lock: sha1:iaZN7Uj+HwpUSDjAX+eIE4U3+ks= sha1:48xeY3AMLcB7zb0Nov9HZ9xaBeI= Xref: g2news1.google.com comp.lang.ada:12862 Date: 2010-08-04T20:46:00+01:00 List-Id: I would be a bit worried about Thread_Proc's *Ada* environment. There's this thing called the Secondary Stack, used for - for example - string catenation; and it's not set up here. I think you'll be OK so long as you restrain yourself! Twiddling LEDs should be OK. There may be a pragma to prevent secondary stack usage?