Re: Tasking and wxWidgets
- From: "Martin Dowie" <martin.dowie@xxxxxxxxxxxxxx>
- Date: Tue, 29 Nov 2005 09:13:33 -0000
Randy Brukardt wrote:
> "Martin Dowie" <martin.dowie@xxxxxxxxxxxxxxx> wrote in message
> news:dma971$fvc$1@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>> You won't need a preprocessor (although GNAT does have one
>> 'gnatprep') - same spec, different bodies.
>>
>> -- Spec
>> procedure Foo;
>>
>> -- Body
>> procedure Foo is null;
>
> While it's not germane to Martin's point, this code is illegal in Ada
> 200Y: a null procedure cannot be a completion. Why not? Null
> procedures are similar to abstract subprograms in use and
> description, and those clearly can't be a completion. And it didn't
> seem worth a new bunch of rules to avoid typing 12 characters - the
> least important savings that one could imagine.
So we're stuck with "procedure Foo is begin null; end;" and a "pragma
Inline"?
To me a null completion would be _very_ useful where you have different
package bodies for different targets but want to share a common package
spec.
Cheers
-- Martin
.
- Follow-Ups:
- Re: Tasking and wxWidgets
- From: Randy Brukardt
- Re: Tasking and wxWidgets
- References:
- Tasking and wxWidgets
- From: Lucretia
- Re: Tasking and wxWidgets
- From: Martin Dowie
- Re: Tasking and wxWidgets
- From: Lucretia
- Re: Tasking and wxWidgets
- From: Martin Dowie
- Re: Tasking and wxWidgets
- From: Randy Brukardt
- Tasking and wxWidgets
- Prev by Date: Re: Buffer overflow Article - CACM
- Next by Date: Counting Elements?
- Previous by thread: Re: Tasking and wxWidgets
- Next by thread: Re: Tasking and wxWidgets
- Index(es):