Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DSDP - Real-Time Software Components (RTSC) » Using GateSwi_Handle_upCast
Using GateSwi_Handle_upCast [message #483731] Wed, 02 September 2009 14:25 Go to next message
Eclipse User
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 10:24 Go to previous message
Dave Russo is currently offline Dave Russo
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: Wed Aug 27 23:24:28 EDT 2014

Powered by FUDForum. Page generated in 0.01947 seconds