Den 2023-10-11 kl. 12:13, skrev andy pugh:
On Wed, 11 Oct 2023 at 10:58, Nicklas SB Karlsson <n...@nksb.eu> wrote:
Have programmed for many years and some programming languages have quite
hard check if data types fit together and think this in general is a
good feature.
And I have programmed _HAL_ for over 10 years, and so think that in
this case there will probably not be many problems.
One example of a useful simplification is that the pin
motion.motion-type has an output type of S32. The most common
components that you might want to connect this to are are "enum" and
"bitslice", both of which require an unsigned input.
S64 has more than enough bits to cover both situations.
I say you could use large numbers on inputs and allow automatic type
casting if fit inside but not the opposite.
Nicklas Karlsson
_______________________________________________
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers