Subject: SDL-News: type cast in SDL
From: Yang LIU (lyly97#mails.tsinghua.edu.cn)
Date: Tue Jun 03 2003 - 08:01:47 GMT
Become an SDL Forum Society member <http://www.sdl-forum.org/Society/members.htm>
The originator of this message is responsible for its content.
-----From "Yang LIU" <lyly97#mails.tsinghua.edu.cn> to sdlnews -----
I am confused in type cast in SDL.
I defined my new type like this:
newtype Frame inherits Octetstring operators all;
dcl myframe Frame;
dcl myOS Octetstring;
We know when generates C code from SDL, Frame is the same as
SDL_Octet_String, but in SDL we can't assign like: myframe:=myOS,
cause different type.
I wanna know how can I do a cast between myframe and myOS in SDL?
--End text from "Yang LIU" <lyly97#mails.tsinghua.edu.cn> to sdlnews ---
For extra SDL Forum Society benefits join at <http://www.sdl-forum.org/Society/members.htm>
This archive was generated by hypermail 2a23 : Thu May 09 2013 - 16:05:49 GMT