You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I know, I know... there is no such thing in IEC61131-3 😁
But would it be possible to introduce it as an option?
There are many instances where one would call an argument and a member with the same name but a different casing, which is a sensible thing to do in many cases.😉
Hi @PTKu thanks for sharing always your new ideas. But do you think, it makes sense to implement such things in a programming language which is by definition not case sensitive? @theBadT what do you think?
@PTKu I know what you mean. I had also in some cases the wish like yours. But I extended your example a little bit. And I come to the conclusion, that it is very hard to read and probably a high risk for errors.
CLASS FooClass
VAR PUBLIC
Foo : BOOL;
END_VAR
METHOD FooMethod : Int
VAR_INPUT
foo : BOOL;
END_VAR
VAR_OUTPUT
foO : BOOL;
END_VAR
IF (foo = Foo) THEN
foO = (Foo OR foo);
END_IF;
END_METHOD
END_CLASS
The idea is that if one wants to apply naming convention where the arguments of a method are using camel casing, there is good chance for a conflict with some public member.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
I know, I know... there is no such thing in IEC61131-3 😁
But would it be possible to introduce it as an option?
There are many instances where one would call an argument and a member with the same name but a different casing, which is a sensible thing to do in many cases.😉
All reactions