Replies: 2 comments 6 replies
-
@ghaith maybe you can chime in on this/correct me if I'm wrong, but afaik equality operators are only implemented for ANY_ELEMENTARY datatypes according to the standard. Structs and arrays are derived data types, so they do not have an implementation for direct comparison. You can, however, implement your own with the provided name. Alternatively, you can compare each field/value individually as you would in a language like C. |
Beta Was this translation helpful? Give feedback.
-
Hi, |
Beta Was this translation helpful? Give feedback.
-
Hi,
We are doing array and structure comparison in our project.
While compiling statements such as array and struct comparison, rusty gives compilation error.
Sample code is as below:
Array_type.ST:
Structure_type.ST:
main.cpp:
myprogram.st:
Compilation command:
Compilation Error:
First we need to know, whether array or structure comparison can be achieved, using rusty compiler?
how to do array or structure comparision.
Note : All our array and structure types are statically compiled.
Beta Was this translation helpful? Give feedback.
All reactions