From: "Mason Wheeler"
Newsgroups: remobjects.public.pascalscript
Subject: Re: Label/Goto unsupported?
One more problem.
For whatever reason, declaring labels as you demonstrated in your example
works just fine as long as there's no "uses" clause at the top of the
script. But if there is a "uses", then attempting to declare a label causes
the compiler to raise a "Type Mismatch" exception.
Would you mind looking into this?
Mason
"Carlo Kok [RemObjects Software]" ck@none.nom wrote in message
Mason Wheeler wrote:
I'm trying to write a scripting engine for a game engine that will be
compatible with another game and able to import its data files.
Unfortunately, the older game's scripting was somewhat primitive and,
lacking support for more advanced control structures, tended to make
heavy use of labels and GOTOs. So now, although we all know that using
them is bad programming, I need a way to support them, for compatibility
reasons. But it seems that PascalScript doesn't support either labels or
the goto command. Am I missing something? If not ,are there any plans
to add support for them?
something like:
Program test;
label A;
begin
a:
writeln('test');
goto a;
end.
works for me.
Carlo Kok
RemObjects Software
The Infrastructure Company
http://www.remobjects.com
[BC23934]
From: "Mason Wheeler"
Newsgroups: remobjects.public.pascalscript
Subject: Re: Label/Goto unsupported?
One more problem.
For whatever reason, declaring labels as you demonstrated in your example
works just fine as long as there's no "uses" clause at the top of the
script. But if there is a "uses", then attempting to declare a label causes
the compiler to raise a "Type Mismatch" exception.
Would you mind looking into this?
Mason
"Carlo Kok [RemObjects Software]" ck@none.nom wrote in message
[BC23934]