![]() |
Telelogic Rhapsody (steve huntington) | ![]() |
Topic Title: Solution of Return type of class in another package Topic Summary: Returns instead of Returntype Created On: 9-Sep-2008 19:45 Status: Read Only |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
We had this come up at work. One of our templates used "$name of [returnType]" to return the name of the type for return values. An engineer was using classes as the return type and found that Rhapsody interpreted the code above as the return type not existing when the operation and the class that was being returned were in different packages. The solution I found was to use "$name of [returns]" instead. That resolves for native data types, classes within the package, and classes without the package. Figured I would post it on the off chance someone else gets it as a headscratcher.
|
|
![]() |
|
![]() |
|
Great to share such stuff - can be a real time saver.
As well as this forum there is the knowledgebase (e.g. this loosely related posting: https://kb.telelogic.com/selfservice/microsites/search.do?cmd=displayKC&docType=kc&externalId=10527&sliceId=1&docTypeID=DT_FAQ&dialogID=748044&stateId=0%200%20744859 ) Does anyone know the procedure for getting knowledge up on the knowledgebase? |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.