I created a structure in Rhapsody 7.6.2 by creating a "type" with "kind" as "structure". Lets call this structure ABC_t.
So now i want to create an object called XYZ of type ABC_t.
However when I create an object I cannot assign it the type ABC_t.
How do i do that?
This topic has been locked.
3 replies Latest Post - 2013-01-09T15:25:17Z by SystemAdmin
Pinned topic How to create object of structure type?
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2013-01-09T15:25:17Z at 2013-01-09T15:25:17Z by SystemAdmin
Re: How to create object of structure type?2013-01-08T15:43:13Z in response to SystemAdminI think it is not possible. I wonder why you would want to do it. A structure can only define variables, but an object also contains functions. For me the right way to define the type of an object is to define a class for it.
Re: How to create object of structure type?2013-01-09T15:25:17Z in response to SystemAdminThanks LookItsMe and fordP.
Using class worked. It is implemented as a structure in Rhapsody in C.
But i still wonder, why have they given a choice to make a structure typedef in Rhapsody in C when Class is anyways implemented as struct. :-)