Re: Tasking and wxWidgets




"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.

Randy Brukardt.


.