Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » DSDP - Real-Time Software Components (RTSC) » Using GateSwi_Handle_upCast
Using GateSwi_Handle_upCast [message #483731] Wed, 02 September 2009 18:25 Go to next message
Eclipse UserFriend
Originally posted by: ravindranath.a.ti.com

Is it allowed to call some thing like below in module's xs file.

GateSwi.Handle handle;
handle = GateSwi.create();
handle = GateSwi.Handle_upCast(handle);


Regards,
Ravindranth Andela
Re: Using GateSwi_Handle_upCast [message #484622 is a reply to message #483731] Tue, 08 September 2009 14:24 Go to previous message
Dave Russo is currently offline Dave RussoFriend
Messages: 172
Registered: July 2009
Senior Member
Upcasting is unnecessary in the meta-domain since type checking occurs
at runtime; in the target domain, excepts for very specialized
situations, all type checks are preformed by the compiler.

Ravindranath wrote:
> Is it allowed to call some thing like below in module's xs file.
>
> GateSwi.Handle handle;
> handle = GateSwi.create();
> handle = GateSwi.Handle_upCast(handle);
>
> Regards,
> Ravindranth Andela
>
Previous Topic:Issue with declaring structure variable and array under instance label in xdc fi
Next Topic:Finding out the size of the structure in xs file
Goto Forum:
  


Current Time: Fri Mar 29 15:09:29 GMT 2024

Powered by FUDForum. Page generated in 0.03265 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top