![]() |
Telelogic Rhapsody (steve huntington) | ![]() |
Topic Title: Out arguments Topic Summary: Created On: 17-Aug-2005 09:51 Status: Read Only |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
When choosing "out" as the direction for an argument, Rhapsody generates something similar to [FONT=Courier New]myFunc(int *& status)[/FONT].
Can anyone tell me what it meens and how I use it!? Thanks. ------------------------- Jesper Gissel Johnson Controls Denmark, Marine Controls |
|
![]() |
|
![]() |
|
The <type>*& means that the caller should pass un-initialized pointer that should be initialized in the function.
For example: void f(int*& i) { i = new int(5); } Note that you have full control over the mapping of out arguments to code using the CPP_CG:Type ![]() ![]() |
|
![]() |
Telelogic Rhapsody
» Rhapsody Category » Rhapsody
»
Out arguments
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.