Re: [Vala] inline C

2008-12-15 Thread Levi Bard
You can currently get the same effect by using extern keyword for c functions in an included c file (you can pass a .c file to valac for this purpose) [...] Vala is not a preprocessor for gcc, although I'm sure many people look at it this way. [...] Personally, I rather have limited

Re: [Vala] inline C

2008-12-15 Thread Conrad Steenberg
On Sat, 2008-12-13 at 13:00 -0500, Jamie McCracken wrote: The disadvantage to inlining is it destroys the platform independence - IE you would not be able to create a gcc front end for vala nor would you be able to have vala-c++ or vala-jvm/clr. jamie Hmmm, I would love to be able to use

Re: [Vala] inline C

2008-12-15 Thread Yu Feng
On Mon, 2008-12-15 at 09:18 -0800, Conrad Steenberg wrote: On Sat, 2008-12-13 at 13:00 -0500, Jamie McCracken wrote: The disadvantage to inlining is it destroys the platform independence - IE you would not be able to create a gcc front end for vala nor would you be able to have vala-c++ or

Re: [Vala] inline C

2008-12-15 Thread Levi Bard
Hmmm, I would love to be able to use C++ libraries from Vala (or Genie, since it's a natural jump from Numeric Python which I currently use). Any ideas on how to do that? Compile the vala/genie-produced C code with a C++ compiler? You could use a C wrapper library ala taglib_c...

Re: [Vala] inline C

2008-12-15 Thread Jamie McCracken
On Mon, 2008-12-15 at 09:18 -0800, Conrad Steenberg wrote: On Sat, 2008-12-13 at 13:00 -0500, Jamie McCracken wrote: The disadvantage to inlining is it destroys the platform independence - IE you would not be able to create a gcc front end for vala nor would you be able to have vala-c++ or

Re: [Vala] inline C

2008-12-15 Thread Conrad Steenberg
On Mon, 2008-12-15 at 12:42 -0500, Jamie McCracken wrote: On Mon, 2008-12-15 at 09:18 -0800, Conrad Steenberg wrote: On Sat, 2008-12-13 at 13:00 -0500, Jamie McCracken wrote: The disadvantage to inlining is it destroys the platform independence - IE you would not be able to create a gcc

Re: [Vala] inline C

2008-12-15 Thread Jürg Billeter
On Mon, 2008-12-15 at 09:49 -0800, Conrad Steenberg wrote: On Mon, 2008-12-15 at 12:42 -0500, Jamie McCracken wrote: On Mon, 2008-12-15 at 09:18 -0800, Conrad Steenberg wrote: Hmmm, I would love to be able to use C++ libraries from Vala (or Genie, since it's a natural jump from Numeric

Re: [Vala] inline C

2008-12-15 Thread Conrad Steenberg
On Mon, 2008-12-15 at 19:39 +0100, Jürg Billeter wrote: On Mon, 2008-12-15 at 09:49 -0800, Conrad Steenberg wrote: On Mon, 2008-12-15 at 12:42 -0500, Jamie McCracken wrote: On Mon, 2008-12-15 at 09:18 -0800, Conrad Steenberg wrote: Hmmm, I would love to be able to use C++ libraries from