TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy


Options: Use Classic View

Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Tucker Taft <[log in to unmask]>
Wed, 5 Nov 1997 09:30:42 -0500
text/plain (27 lines)
> > >add a delay 0.0 to allow switching ...
> > I don't have an RM handy, but I recall you technically need something
> > like delay duration'small or something to force a task switch.

This statement is wrong.  It is very clear from D.2.2(18) that any delay
statement results in at least one task dispatching point.

> I remember I once was very disappointed about the language
> definition not to allow for a zero time break point  :-(

Don't be disappointed.  The person without the "handy" RM was wrong.
Don't believe everything you read on TEAM-ADA, especially written
by people without handy RMs ;-).

> A "delay 0.0" should be a potential break, what else?
> Give me one reason not to do so.
> Even a "delay -t" should do so.

Both of these do result in a task dispatching point.

> --
> Peter Hermann  Tel:+49-711-685-3611 Fax:3758 [log in to unmask]
> Pfaffenwaldring 27, 70569 Stuttgart Uni Computeranwendungen
> Team Ada: "C'mon people let the world begin" (Paul McCartney)

-Tucker Taft  [log in to unmask]