Cross-type string appending message

2005-05-21 Thread Colin Paul Adams
I'm getting the following error message: Cross-type string appending (fixed_8/ascii) (fixed_8/ascii) unsupported Just looking at the text alone suggests an incorrect error text (at best). -- Colin Adams Preston Lancashire

Re: Parrot as an extension language

2005-05-21 Thread Colin Paul Adams
>>>>> "Colin" == Colin Paul Adams <[EMAIL PROTECTED]> writes: >>>>> "Leopold" == Leopold Toetsch <[EMAIL PROTECTED]> writes: Leopold> What's the difference WRT va_list? If the interface code Leopold> can stuff

Re: Parrot as an extension language

2005-05-21 Thread Colin Paul Adams
> "Leopold" == Leopold Toetsch <[EMAIL PROTECTED]> writes: Leopold> BTW (again) which interface generator for which Eiffel? Oops. I missed that last bit. All current Eiffel compilers are supported. -- Colin Adams Preston Lancashire

Re: Parrot as an extension language

2005-05-21 Thread Colin Paul Adams
>>>>> "Leopold" == Leopold Toetsch <[EMAIL PROTECTED]> writes: Leopold> Colin Paul Adams wrote: >>>>>>> "Leopold" == Leopold Toetsch <[EMAIL PROTECTED]> writes: Leopold> What's the difference WRT va_list?

Re: Parrot as an extension language

2005-05-21 Thread Colin Paul Adams
> "Leopold" == Leopold Toetsch <[EMAIL PROTECTED]> writes: Leopold> What's the difference WRT va_list? If the interface code Leopold> can stuff things into an array, it sould as well be able Leopold> to prepare a va_list. You are quite right. I'll harass the author of the interfac

Re: Parrot as an extension language

2005-05-20 Thread Colin Paul Adams
> "Dan" == Dan Sugalski <[EMAIL PROTECTED]> writes: Dan> So, I see four real options: Dan> 1) Someone fixes the Eiffel interface generator to understand Dan> C variadic functions. 2) We provide a function and method Dan> call interface that assumes you've already pre-filled i

Re: Parrot as an extension language

2005-05-20 Thread Colin Paul Adams
>>>>> "Leopold" == Leopold Toetsch <[EMAIL PROTECTED]> writes: Leopold> Colin Paul Adams <[EMAIL PROTECTED]> wrote: >> I have a problem with this - namely that the function is >> variadic, and the interface generator can't cop

Re: Parrot as an extension language

2005-05-20 Thread Colin Paul Adams
> "Autrijus" == Autrijus Tang <[EMAIL PROTECTED]> writes: Autrijus> You may wish to use Parrot_call_sub's "SS" form, where Autrijus> you pass in a string and get back a string. Something Autrijus> like this: Autrijus> my $interp = Parrot_new(undef); Autrijus> # .

Re: Parrot as an extension language

2005-05-20 Thread Colin Paul Adams
>>>>> "Leopold" == Leopold Toetsch <[EMAIL PROTECTED]> writes: Leopold> Colin Paul Adams <[EMAIL PROTECTED]> wrote: >> I have a problem with this - namely that the function is >> variadic, and the interface generator can't cop

Re: Parrot as an extension language

2005-05-20 Thread Colin Paul Adams
> "Autrijus" == Autrijus Tang <[EMAIL PROTECTED]> writes: Autrijus> On Fri, May 20, 2005 at 10:34:39AM +0100, Colin Paul Autrijus> Adams wrote: >> I have a problem with this - namely that the function is >> variadic, and the interface generator can't cope with this. Autrij

Re: Parrot as an extension language

2005-05-20 Thread Colin Paul Adams
> "Autrijus" == Autrijus Tang <[EMAIL PROTECTED]> writes: Autrijus> On Tue, May 17, 2005 at 03:00:14PM +0100, Colin Paul Autrijus> Adams wrote: >> But when I look at http://www.parrotcode.org/docs/embed.html, I >> can see no way of getting information back from the script -

Re: Parrot as an extension language

2005-05-19 Thread Colin Paul Adams
> "Leopold" == Leopold Toetsch <[EMAIL PROTECTED]> writes: Leopold> Yeah. I'm sorry to say that: you are just hitting a part Leopold> of Parrot labeled "under (re)construction" and the docs Leopold> aren't all up to date. >> So does that mean I'm limited to singlebyte string

Re: Parrot as an extension language

2005-05-19 Thread Colin Paul Adams
>>>>> "Colin" == Colin Paul Adams <[EMAIL PROTECTED]> writes: >>>>> "Jeff" == Jeff Horwitz <[EMAIL PROTECTED]> writes: Colin> Can't make 'UTF-8' charset strings Colin> Despite what the documentation sa

Re: Parrot as an extension language

2005-05-19 Thread Colin Paul Adams
> "Jeff" == Jeff Horwitz <[EMAIL PROTECTED]> writes: Jeff> all you should need to include is embed.h, extend.h and for Jeff> now, resources.h. i'm actually working on fleshing these Jeff> files out to be more consistent wrt the public API. I'm getting real close now. But I'm hav

Re: Parrot as an extension language

2005-05-19 Thread Colin Paul Adams
> "Jeff" == Jeff Horwitz <[EMAIL PROTECTED]> writes: >> What headers do I need to read for the parrot_find_global call? Jeff> Parrot_PMC is the public type, and behind the scenes it's Jeff> defined as PMC *. Jeff> all you should need to include is embed.h, extend.h and for

Re: Parrot as an extension language

2005-05-19 Thread Colin Paul Adams
> "Autrijus" == Autrijus Tang <[EMAIL PROTECTED]> writes: Autrijus> You may wish to use Parrot_call_sub's "SS" form, where Autrijus> you pass in a string and get back a string. Something Autrijus> like this: Autrijus> my $interp = Parrot_new(undef); Autrijus> # .

Parrot_setup_argv in embed.h

2005-05-18 Thread Colin Paul Adams
This function declaration does not appear to have a definition. I commented out the declaration, in order to get my code to compile. Is this the right thing to do? embed.c has a reference to it commented out. -- Colin Adams Preston Lancashire

Re: Problems linking with parrot

2005-05-18 Thread Colin Paul Adams
> "Jeff" == Jeff Horwitz <[EMAIL PROTECTED]> writes: Jeff> you need to link with src/parrot_config.o (a recent change). Thanks, that did the trick. -- Colin Adams Preston Lancashire

Problems linking with parrot

2005-05-18 Thread Colin Paul Adams
I've nearly got my first Eiffel program with an embedded parrot VM to compile - well, actually, it DOES compile, just one remaining link problem, which I can't figure out: gcc -o hello -O2 -m486 -pipe -I/opt/Eiffel55/studio/spec/linux-glibc2.1/include -I. -I/home/colin/parrot/include -I/home/co

Re: Parrot as an extension language

2005-05-18 Thread Colin Paul Adams
> "Autrijus" == Autrijus Tang <[EMAIL PROTECTED]> writes: Autrijus> On Tue, May 17, 2005 at 03:00:14PM +0100, Colin Paul Autrijus> Adams wrote: >> But when I look at http://www.parrotcode.org/docs/embed.html, I >> can see no way of getting information back from the script -

Re: Parrot as an extension language

2005-05-17 Thread Colin Paul Adams
> "Jeff" == Jeff Horwitz <[EMAIL PROTECTED]> writes: >> Why's that a but? Haskell's a good language. Jeff> no argument there -- just assumed you were looking for Jeff> examples in C! :) Actually, examples in any language are fine. I'm actually writing in Eiffel, but I shall use

Re: Parrot as an extension language

2005-05-17 Thread Colin Paul Adams
> "Autrijus" == Autrijus Tang <[EMAIL PROTECTED]> writes: Autrijus> You may wish to use Parrot_call_sub's "SS" form, where Autrijus> you pass in a string and get back a string. I take it SS stands for String-to-String? Which section within http://www.parrotcode.org/docs/ covers this

Re: Parrot as an extension language

2005-05-17 Thread Colin Paul Adams
> "Jeff" == Jeff Horwitz <[EMAIL PROTECTED]> writes: Jeff> you'll probably want to use the Parrot_call_sub_* API to Jeff> call individual subroutines and get return values. "perldoc Jeff> extend.c" in the parrot source for more info. you might Thanks - I'll take a look at that.

Parrot as an extension language

2005-05-17 Thread Colin Paul Adams
Hello, I am writing an XSLT 2.0 processor, and I want to give users the option to write their own message and error handling routines and the like in their favourite scripting language. So I thought of using parrot. But when I look at http://www.parrotcode.org/docs/embed.html, I can see no way of