Wow !
It is a very bad programming example.
I would rather not to publish it :-)
But ...
Why are you still keeping this old programming solution: GOTO ?
It always leads to problems.
Maybe GOTO is simple and powerful but it is aften confusing.
It is time for object-oriented programming solution also for TTCN.
GOTO is against the philosophy of OOP.
I would propose to develop TTCN-3 by extending JAVA capabilities.
It would be more practically and functionally to modify Java a little bit
to get the same results like new TTCN plus capabilities of Java. as a base
for
extension.
Is it possible to do some rework and modify Java for TTCN ?
I think things should go towards the future, not only doing mixture of
TTCN-2, Pascal, C++, Java and Basic, there is neded some adoption
for the next years.
Sometimes if you want to make happy all, nobody will be satisfied.
Regards,
Mariusz Kupiec
Original Message
From: "Jens Grabowski" <
This email address is being protected from spambots. You need JavaScript enabled to view it.>
To: <
This email address is being protected from spambots. You need JavaScript enabled to view it.>
Sent: Tuesday, October 23, 2001 3:42 PM
Subject: Re: Placement of Declarations
> Dear Olle,
>
> you forgot the effect of the GOTO statement ...
>
> if condition then {
> some_code;
> goto Mylabel;
> integer i := 0;
> some_more_code;
> label Mylabel;
> i := i + 20
> }
>
> might not be that nice.
>
> Regards
> Jens Grabowski
>
> >
Original Message
> > From: Olle PALMGREN [
This email address is being protected from spambots. You need JavaScript enabled to view it.]
> > Sent: 23 October 2001 15:07
> > To:
This email address is being protected from spambots. You need JavaScript enabled to view it.
> > Subject: Placement of Declarations
> >
> >
> > In the standard, there seem to exist 3 different rules of
> > when declarations
> > have to be made:
> >
> > 1) On top scope, there is no requirements where declarations
> > are placed.
> > 2) In all other scopes, it is declare-before-use.
> > 3) Inside a statement block, declarations have to come first.
> >
> > 1 and 2 make sense, 3 does not, in my opinion. If it is legal
> > in a function
> > to declare variables when they are needed, why should this
> > not be allowed
> > inside a statement block, e.g., the then-clause of an if-then-else
> > statement?
> >
> > It is legale to write:
> >
> > function f() returns integer {
> > some_code;
> > integer i :=0 ;
> > some_more_code;
> > }
> >
> > so it should be legal to write
> >
> > if condition then {
> > some_code;
> > integer i := 0;
> > some_more_code;
> > }
> >
> > So, I propose to eliminate the clauses in the standard that state that
> > declarations shall come first in a statement block.
> >
> > Best regards
> >
> > Olle
> >
> >
> >
> >
> > Telelogic Tau 4.2 speeds up your wireless development!
> > Read more about it at
www.telelogic.com/tau42
> >
> >
> >
> > Olle Palmgren
> > Director of Engineering, PD Test
> > Telelogic, St Persgatan 13, SE-753 20, Uppsala, Sweden
> > Phone: +46 18 66 18 59
> > Fax: +46 18 66 18 70
> >
This email address is being protected from spambots. You need JavaScript enabled to view it.
> >
www.telelogic.com
> >
> >
> >
> > Telelogic - Putting you ahead in software development!
> >
> >
> >
> >
>
Czat w rytm pisku opon...
czateria.interia.pl/gosc?cid=622
Janusz Kulig na CZATerii > ¦roda, 24 pa?dziernika od 12:00