Skip to content

Label/Goto unsupported? #13

@evgeny-k

Description

@evgeny-k

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]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions