![]() |
Telelogic TAU (steve huntington) | ![]() |
Topic Title: How to use cast function? Topic Summary: TAU, G2, cast, pointer Created On: 31-May-2005 01:13 Status: Read Only |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Dear members.
I want to use casting function as like c lang. so I find it in the Predefined->cast(ARG):T. I'm very happy to support this function in TAU. But TAU is disappointed to me. because TAU is crashed during the execution to verify the model. Syntax is very clear. but during execution TAU is crashed. Please support the this function. sample code is as the follows. Character a; cast Thanks in advance. |
|
![]() |
|
![]() |
|
Hi Younghae Jung,
I have observed that the syntax you have provided is not correct. Please go through the below example on conversions. //Declarations Integer i; double d; Real R; char ch; CPtr 'char*' cs; //Assignments i = 10; d= 2.4; R = 10; ch = 'A'; cc = GetAddress(ch); // Casting cs = cast<'char*'> (cc); i = cast d= 3.5; R = cast Hope this helps. With Best Regards Madan Edited: 3-Jun-2005 at 22:27 by Madan Mohan Tito A |
|
![]() |
|
![]() |
|
Thank you for your advice. //Assignments // Casting Edited: 10-Jun-2005 at 12:19 by Jongil Park |
|
![]() |
Telelogic TAU
» TAU/Developer
»
How to use cast function?
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.