#39 Possible bug with *? prototype

open
nobody
None
5
2010-08-23
2010-08-23
No

The following code snippet generates a warning. (ABFILE.CLW generates similar warning).
WARNING: Not appropriate to use reference assigment for variable:fld

The code snippet:
---------
program
map
test procedure(*? fld)
.
result ANY
assign long
code
test(result)
test procedure(fld)
code
fld&=assign
---------

It is quite possible that implementation of handling *? is misimplemented. If you replace *? with *ANY then warning disappears.

Some experimentation on clarion compiler with above code snippet is required to discover exactly what *? means in this context.

Discussion


Log in to post a comment.