swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Type Casting


From: Marcus G. Daniels
Subject: Re: Type Casting
Date: 28 May 1998 18:00:38 -0700

>>>>> "D3" == Doug Donalson; <address@hidden> writes:

D3> int x; char y;

D3> x=1; y=(char)x; putchar(y);

D3> The output of this is "got 1".

It should output a Control-A. 

D3> While I'm at it, I tried the "string" in Swarm and ran into a
D3> problem.  Defined as a String * the compilier flags an error. 

The usage is like so:

 id <String> string = [String create: globalZone setC: "someString"];

D3> so I changed it.  This got rid of the compiler error, but then String
D3> does not recognize "appendC:" .

Changed it to what?  Btw, appendC: is a gratuitous alias for catC:.


                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.
                  ==================================


reply via email to

[Prev in Thread] Current Thread [Next in Thread]