Hi Everyone,
In section 5.4.1.3 Formal parameters of kind timer
As I understand, and remember, the general agreement with use of formal
parameters is that omitting the keyword in, out, or inout, implies the use
of the 'in' qualifier.
However, restriction a) indicates that by default timer is implicitly
qualified by inout.
This breaks the consistency of implicit assignment of the 'in' qualifier
for formal parameters. Adding such exceptions only makes things more
difficult for users new to TTCN-3 to learn, understand, and use correctly.
NOTE: Yes, it does make sense to use implicit inout qualification for
timers, but I just wanted to point out the obvious inconsistency. :-)
NOTE2: Developers should get into the habit of always adding the 'in',
'out' or 'inout' qualifier to ensure complete clarity of one' intent.
Implicit semantics is for the most part dangerous, even if it does save a
few keystrokes. )-:
What do you think?
Cheers,
Claude.
BluKaktus Communication phone: +49 (0)30 9606 7985
Edinburger Str. 39 fax: +49 (0)30 9606 7987
13349 Berlin mobile: +49 (0)174 701 6792
Germany email: This email address is being protected from spambots. You need JavaScript enabled to view it.