[Vm-dev] Howto invoke plugin primitive from Interpreter?

André Wendt andre.wendt at hpi.uni-potsdam.de
Thu Jun 14 16:06:58 UTC 2007

Bert Freudenberg schrieb:
> On Jun 14, 2007, at 16:08 , André Wendt wrote:
>> Bert Freudenberg schrieb:
>>> On Jun 14, 2007, at 14:31 , André Wendt wrote:
>>>> That means I have to open a file upon initialization and write the
>>>> file
>>>> at each send. There's no other way than to do that in the  
>>>> Interpreter,
>>>> as far as I can see.
>>> What about fopen()?
>> Do you mean something like
>> f := self cCode: 'fopen(logFile, "a")'. ??
> sure

I could do that (and it works), but only until I encounter the
corresponding fwrite() call. Something along the lines of

self cCode: 'fwrite("asdf", 4, 1, self sendProfile)'.

of course won't work, and then I'd still have to somehow mix my
variables into the C code. That's where it starts getting nasty again.

Any suggestions?


More information about the Vm-dev mailing list