Project

General

Profile

What's the meaning of "void" usually on the second line in .code sections?

Added by Rochus Keller over 1 year ago

The generated IR files usually have something like this in nearly each .code section:

.code ORP.Check

    loc    "ORP.Mod", 26, 3
    void

What is the meaning of "void" here? Where is it described in the manual?


Replies (3)

RE: What's the meaning of "void" usually on the second line in .code sections? - Added by Florian Negele over 1 year ago

This is a void type declaration, and in this context describes the result type of the code section. In Oberon parlance, ORP.Check is therefore a proper procedure rather than a function procedure.

RE: What's the meaning of "void" usually on the second line in .code sections? - Added by Rochus Keller over 1 year ago

Great, thanks.

Maybe you could add a hint to the .code section chapter, as there is one e.g. in 23.4.22 function type declaration.

RE: What's the meaning of "void" usually on the second line in .code sections? - Added by Florian Negele over 1 year ago

Thanks. All debugging instructions are completely optional.

    (1-3/3)