Jump to content
Excelsior Forums
Sign in to follow this  

Compiler "problem"

Recommended Posts

This is actually a "cosmetic" issue, but it would be nice if you could solve it.

I have an Oberon-2 file with some type-bound procedures and some non type bound procedures. I also use (**  *) comments. When I compile the file and produce the corresponding .odf file, the (**  *) comments that had already been printed are REPEATED before the non type bound procedures. I am attaching a test case: (1) the project file, (2) the source .ob2 file, and (3) the .odf file produced. I have removed all code from the source file and left only procedure names. Due to your restrictions regarding attached file names, I have changed the .odf file name. Note that I often produce .odf files, but this problem does not appear in every case. I have been unable to figure out what exactly causes the problem.






Share this post

Link to post
Share on other sites


  I know how to stop this problem with the exported comments.

In your code you have parameterless exported procedures such as

PROCEDURE (VAR s:VarString)RecEnvRpl*;

If you add an empty pair of brackets to these definitions then the odf output will be correct.

PROCEDURE (VAR s:VarString)RecEnvRpl*();

Hope I'm right! 


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this