hi,
yeah even i have seen the "XX" phenomenon! thought that I maybe
doing something wrong.
best,
-Piyush
______________________________ Reply Separator _________________________________
Subject: Re: (ROSE) how to describe an array as member in rose
Author: fdueber ([EMAIL PROTECTED]) at internet
Date: 5/16/01 12:40 PM
Hello :)
Well, in Rose2001 C++ this doesn't work properly. Adding [] to the name or
type of attribute produces a XX in generated code (e.g.: myFlags[10] is put
to myFlagsX10X).
My workaround: Generate code as mentioned above, manually replace the XX
with [] and then change preserve=no to preserve=yes of the attribute. This
works fine and there's no re-change to XX after a code-cycle.
regards,
Frank Dueber
----- Original Message -----
From: "Ramesh, Bama" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, May 16, 2001 8:14 AM
Subject: RE: (ROSE) how to describe an array as member in rose
>
> Hi,
>
> You can either add [] to the attribute name or to the data type. If you
> want the code to look like what you have stated
> String listOfStudents[20];
> then in Rose it should be
> listOfStudents[20]:String
>
> Regards,
> Bama Ramesh
> Software Engineering Specialist
> Rational, the e-development company
>
> No. 40, 100 Feet Road, 4th Block
> Koramangala, Bangalore - 560 034.
>
> Phone: +91-80-553 8082/9864 extn. 155
> Mobile: +91-98451 87824
> Fax: +91-80-553 8293
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 14, 2001 9:38 PM
> To: [EMAIL PROTECTED]
> Subject: (ROSE) how to describe an array as member in rose
>
>
>
> hi,
>
> is there a way to describe an attribute (data member) of a class
> as an array in rose in the specification section of the class on
> the attribute page?
>
> e.g. the code may look like this subsequently:
>
> Class Course
> {
> String listOfStudents[20];
> ...
> };
>
> TIA,
> -Piyush
>
> ************************************************************************
> * Rose Forum is a public venue for ideas and discussions.
> * For technical support, visit http://www.rational.com/support
> *
> * Admin.Subscription Requests: [EMAIL PROTECTED]
> * Archive of messages:
> http://www.rational.com/products/rose/usergroups/rose_forum.jtmpl
> * Other Requests: [EMAIL PROTECTED]
> *
> * To unsubscribe from the list, please send email
> *
> * To: [EMAIL PROTECTED]
> * Subject:<BLANK>
> * Body: unsubscribe rose_forum
> *
> *************************************************************************
> ************************************************************************
> * Rose Forum is a public venue for ideas and discussions.
> * For technical support, visit http://www.rational.com/support
> *
> * Admin.Subscription Requests: [EMAIL PROTECTED]
> * Archive of messages:
http://www.rational.com/products/rose/usergroups/rose_forum.jtmpl
> * Other Requests: [EMAIL PROTECTED]
> *
> * To unsubscribe from the list, please send email
> *
> * To: [EMAIL PROTECTED]
> * Subject:<BLANK>
> * Body: unsubscribe rose_forum
> *
> *************************************************************************
>
>
************************************************************************
* Rose Forum is a public venue for ideas and discussions.
* For technical support, visit http://www.rational.com/support
*
* Admin.Subscription Requests: [EMAIL PROTECTED]
* Archive of messages:
http://www.rational.com/products/rose/usergroups/rose_forum.jtmpl
* Other Requests: [EMAIL PROTECTED]
*
* To unsubscribe from the list, please send email
*
* To: [EMAIL PROTECTED]
* Subject:<BLANK>
* Body: unsubscribe rose_forum
*
*************************************************************************