Here is a simple example.

{ import: Object }
[ '7 * 6 = ' println ]                             "pepsi code"
{ _sendv(s_println, 1, (oop) (7 * 6 * 2 + 1)); }   "C code"

And if you follow definition of _sendv in the generated code with gdb, it
would be very interesting.

Cheers,
- Takashi

On Mon, Jun 23, 2008 at 4:05 PM, Bert Freudenberg <[EMAIL PROTECTED]> wrote:
>
> Am 24.06.2008 um 00:22 schrieb Rémy Mouëza:
>
>> Hello,
>>
>> I am stuck in front of a problem: I would like to send messages to a
>> idst objects from a regular C function. However, after a look at the
>> compiler, the libid.c file and the generated code I don't have any
>> clue to make it simple and straightforward. Actually I feel lost.
>>
>> My final goal is to call that later function from C++: I am currently
>> writting a binding generator to be able to use the FLTK library from
>> idst. I am using the principles used in Qt for Ada which can be found
>> here: http://qt4ada.sourceforge.net/index.php?current=ada_cpp : I
>> derive C++ classes to be wrapped and bound then I shoul have the
>> derived class dispatch their virtual method to idst object (stored as
>> void * pointers on the C++ side) which would then either redefine the
>> method behaviours or simply call the C++ super method.
>>
>> Has anyone any guidelines or hints about doing this?
>
>
> You might want to read the object model paper, which includes C code that
> sends messages:
>
> http://piumarta.com/software/cola/objmodel2.pdf
>
> - Bert -

_______________________________________________
fonc mailing list
[email protected]
http://vpri.org/mailman/listinfo/fonc

Reply via email to