Re: Tasking and wxWidgets



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


.