Menu

#1184 INSPECT does not permits FUNCTION

unclassified
accepted
nobody
4
2026-01-28
2026-01-28
No

Bug description: see [1e7529dc5d], providing sample code as well

Related

Discussion: 1e7529dc5d

Discussion

  • Simon Sobisch

    Simon Sobisch - 2026-01-28
    • labels: --> INSPECT, intrinsic, user-defined function
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1 +1 @@
    -Bug description: see at  https://sourceforge.net/p/gnucobol/discussion/cobol/thread/1e7529dc5d/
    +Bug description: see [1e7529dc5d], providing sample code as well
    
    • status: open --> accepted
    • Priority: 5 - default --> 4
     

    Related

    Discussion: 1e7529dc5d

  • Simon Sobisch

    Simon Sobisch - 2026-01-28

    Note that when adding the tests to GnuCOBOL the raise of runtime exceptions in case of non-matching sizes also need to be done.

    For INSPECT some-func (some-thing) with CONVERTING or REPLACING the compiler would ideally warn that the result is not stored (only counters may be set in the end - note: it is not worth it to then make a no-op out of it because it may still raise runtime exceptions and calling the functions - if they aren't intrinsics - may have side effects as well).

     

Log in to post a comment.

MongoDB Logo MongoDB