[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Type Casting
From: |
Doug Donalson |
Subject: |
Re: Type Casting |
Date: |
Thu, 28 May 1998 19:06:43 -0700 |
Just for your info, the reason I am doing this is that each 2-D grid
site in my model is a sub-population of a metapopulation and I need
to instrument each one as well as the model global output. As opposed
to making one HUGH file, I am using the x,y's of the cells to create seperate
file names for each cell. (Then I will just have around 440 files per run!)
Marcus G. Daniels wrote:
> >>>>> "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.
but it doesn't, it outputs "got 1" but I realized what I did
wrong.(char)(1+48). It's been a long time since I did anything at this
level.
Sigh... I'm losing my touch.
>
>
> 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"];
>
That's correct, I change the definition to a protocall as per above andused
the above statement to create it. BUT:
[string appendC: "someAdditionToString"]
gets a message that String doesn't recognize appendC:
This is not critical to my app any more but it is bothersome none the less.
> 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:.
>From a String * to an id <String>
>
>
> ==================================
> 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.
> ==================================
==================================
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.
==================================
- Type Casting, Doug Donalson;, 1998/05/28
- Re: Type Casting, Marcus G. Daniels, 1998/05/28
- Re: Type Casting,
Doug Donalson <=
- Re: Type Casting, Marcus G. Daniels, 1998/05/28
- Re: Type Casting, Doug Donalson, 1998/05/29
- Re: Type Casting, Marcus G. Daniels, 1998/05/29
- Re: Type Casting, Marcus G. Daniels, 1998/05/29
- Re: Type Casting, glen e. p. ropella, 1998/05/29
- Re-scaling in EZGraph, Parviez Hosseini, 1998/05/29
- Re: Re-scaling in EZGraph, glen e. p. ropella, 1998/05/31