SDL-News: type cast in SDL

Subject: SDL-News: type cast in SDL
From: Yang LIU (
Date: Tue Jun 03 2003 - 08:01:47 GMT

Become an SDL Forum Society member <>
The originator of this message is responsible for its content.
-----From "Yang LIU" <> to sdlnews -----

hi members,
     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?

                                 Best Regards

--End text from "Yang LIU" <> to sdlnews ---
For extra SDL Forum Society benefits join at <>

This archive was generated by hypermail 2a23 : Thu May 09 2013 - 16:05:49 GMT