This portal is to open public enhancement requests against IBM Power Systems products, including IBM i. To view all of your ideas submitted to IBM, create and manage groups of Ideas, or create an idea explicitly set to be either visible by all (public) or visible only to you and IBM (private), use the IBM Unified Ideas Portal (https://ideas.ibm.com).
We invite you to shape the future of IBM, including product roadmaps, by submitting ideas that matter to you the most. Here's how it works:
Start by searching and reviewing ideas and requests to enhance a product or service. Take a look at ideas others have posted, and add a comment, vote, or subscribe to updates on them if they matter to you. If you can't find what you are looking for,
Post an idea.
Get feedback from the IBM team and other customers to refine your idea.
Follow the idea through the IBM Ideas process.
Welcome to the IBM Ideas Portal (https://www.ibm.com/ideas) - Use this site to find out additional information and details about the IBM Ideas process and statuses.
IBM Unified Ideas Portal (https://ideas.ibm.com) - Use this site to view all of your ideas, create new ideas for any IBM product, or search for ideas across all of IBM.
ideasibm@us.ibm.com - Use this email to suggest enhancements to the Ideas process or request help from IBM for submitting your Ideas.
IBM believes that the request described has been solved and is available with the enhancement that provides OPTIONS(*EXACT) for prototyped parameters.
This enhancement is available with the following PTFs:
- 7.3 TGTRLS(*CURRENT) - SI71534
- 7.4 TGTRLS(*CURRENT) - SI71536
- 7.4 TGTRLS(*PRV) - SI71538
See the "What's new since 7.3" or "What's new since 7.4" sections of the ILE RPG Reference. (The inforomation is the same in both manuals.)
https://www.ibm.com/support/knowledgecenter/ssw_ibm_i_73/rzasd/rpgrelv7r3post.htm
https://www.ibm.com/support/knowledgecenter/ssw_ibm_i_74/rzasd/rpgrelv7r4post.htm
Thank you for the detailed explanation. IBM will use this request as input to planning but no commitment is made or implied. This request will be updated in the future if IBM implements it. IBM will use votes and comments from others in the community to help prioritize this request.
If this requirement is implemented, it would likely be on a parameter-by-parameter basis, with a new parameter option OPTIONS(*EXACT), which would require the passed parameter to be an exact match for the parameter even if CONST or VALUE was coded, and it would also mean stricter rules for a parameter passed by reference which allows longer strings or data structures to be passed. For a parameter defined as a data structure, OPTIONS(*EXACT) would require the passed parameter to be related by LIKEDS to the prototyped parameter.
Attachment (Use case): The attached file should give a brief explanation of why more strict and strong typing rules are required. Basically the whole thing is heading in the same direction with Thomas Raddatz' request for bringing the back the requirement for Prototyping exported functions.
Please provide a detailed example of the type of error that should be flagged by the compiler.
Does that really qualify as type checking? I thought ILE RPG was already a heavily typed language in the context of variable definition so aren't you really looking for better feedback reporting of your error condition?