[Top][All Lists]

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

Re: [Help-smalltalk] c callouts and char**

From: Paolo Bonzini
Subject: Re: [Help-smalltalk] c callouts and char**
Date: Sun, 9 Jan 2011 22:43:04 +0100

On Sun, Jan 9, 2011 at 19:50, Mathieu Suen <address@hidden> wrote:
> On Jan 9, 2011, at 6:14 PM, Paolo Bonzini wrote:
>> No, Smaltalk objects are not automatically converted to instances from
>> the CObject hierarchy.
> Could it be interesting to have message like asCUChar, asCInt...?
> This could avoid writing too mush parenthesis for example:
> aCObject at: 1 put: 230 asCUChar.

I don't think this would be used very often.  Your example would not
be equivalent to

   aCObject[1] = 230;

but rather

   char *p = malloc (1);
   *p = 230;
   aCObject[1] = p;


reply via email to

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