Recently I found out that you can easily omit INPUT-OUTPUT option when you call a function or a method like that
FUNCTION Func RETURNS CHARACTER PRIVATE ( INPUT-OUTPUT yyy AS CHARACTER ):
END FUNCTION.
Func(x).
I think it's an awful thing in the language syntax. It makes the code VERY confusing because when you see F(X) you think X is immutable here but suddenly it turns out that it is mutable and it's a disaster!
It's OpenEdge 11.5.
This has been discussed here before. I agree it's awful and dangerous.
Chances to get this fixed however are almost zero.
I agree that this is not good. We could add this on to our compiler OPTIONS feature - i.e., RequireExplicitParameterCompatibility (I know - the name is probably too long! But you get the point.)
[quote user="Laura Stern"]
I agree that this is not good. We could add this on to our compiler OPTIONS feature - i.e., RequireExplicitParameterCompatibility (I know - the name is probably too long! But you get the point.)
+1
or +101 if I may.
I'm looking forward to it! When's this option going to appear?