We are still working on migrating to the new Bosch Connected Industry Online Portal. Stay tuned! Click here for the latest updates.
12-07-2023 03:47 AM
Hello,
There are several alias types that would be very useful to have (for the sake of code clarity), but currently they are not available in a central library. I'm thinking that OpconBaseCommonDef is the best place for these. Currently it only has SIZE_T and EVENTADDLTEXT_T, which are really generally useful. And maybe sometimes OOID_T.
I suggest adding these:
Here are some more, but I am feeling much less strongly about those:
All changes would be perfectly backwards-compatible but enhance future programs, because we can use these types to annotate our variables and method parameters.
What do you think about this proposal? Any other types that would be useful?
Solved! Go to Solution.
01-17-2024 09:56 AM
I would kindly like to ask for feedback whether there is any chance that this idea will be implemented. Because if not then I want to add it to our BMG internal base objects.
02-12-2024 08:58 AM
Sorry for the late reply! We have discussed this matter extensively and come to the conclusion that we will not provide these alias types.
This does not mean that we don't feel they are useful in some places. But it doesn't feel right to provide the type definitions without using them consistently in our own libraries. Updating all objects to use the alias types would be too much effort for just a small readability improvement. Moreover, updating libraries to use the new types would be an incompatible change because it requires a higher minimum version of the base object, which means even more versioning effort.
02-19-2024 02:37 AM
Thanks for the response. I will go ahead and add it to our own framework extensions then.
If you think it's generally a good idea, maybe you can keep it as a note for Nexeed V3 or whatever comes next 😉