Re: [Vala] Math.exp2 not portable

2008-01-31 Thread pancake
*/ int foo(int arg); 2008/1/31, pancake [EMAIL PROTECTED]: On Wed, Jan 30, 2008 at 09:48:11PM +0100, J?rg Billeter wrote: On Wed, 2008-01-23 at 11:10 +0100, pancake wrote: But the reality is another: http://www.gnu.org/software/gnulib/manual/html_node/exp2.html We don't

[Vala] some openmoko stuff

2008-02-05 Thread pancake
found in planet.openmoko.org... http://www.vanille-media.de/site/index.php/2007/12/30/first-encounter-with-vala/ http://svnweb.openmoko.org/trunk/src/target/OM-2007.2/applications/openmoko-terminal2/src/?rev=3755 ___ Vala-list mailing list

[Vala] My first gtkaml application

2008-03-06 Thread pancake
: http://news.nopcode.org/goxf.gif http://news.nopcode.org/goxf2.gif And the source: http://news.nopcode.org/miau/pvc.cgi?prj=0xleaf=2b622cf2/[EMAIL PROTECTED] ( for full tarball: http://news.nopcode.org/miau/pvc.cgi?dist=0x ) Thanks for all these language projects! --pancake

[Vala] vala 0.1.7 on scratchbox

2008-03-14 Thread pancake
and later build the rest inside the qemu-arm ...this will be the best solution maybe.. Sorry for the noise ;) Is anyone in the list working with maemo and vala? --pancake ___ Vala-list mailing list Vala-list@gnome.org http://mail.gnome.org/mailman/listinfo

Re: [Vala] Vala port of gtk-sharp-ribbon

2008-07-22 Thread pancake
On Mon, 2008-07-21 at 22:38 +0200, Frederik wrote: Alberto Ruiz wrote: Done: http://svn.gnome.org/viewvc/libgeetk/trunk/ deosnt compiles for me (using valac 0.3.5 from svn) ___ Vala-list mailing list Vala-list@gnome.org

Re: [Vala] Vala autoconf macro

2008-08-20 Thread pancake
project ;) --pancake ___ Vala-list mailing list Vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list

Re: [Vala] embedding c code snippet in vala source.

2008-08-22 Thread pancake
portability and makes the code uglier. So C is not portable, and Vala plans to be, because it's based on GLIB and other portable C libraries. If you embed C in your program is probably because you need to do something specific for your system or sthg not yet vapied. --pancake

[Vala] gstminiobjects in gobject?

2008-09-29 Thread pancake
Just for random reading :) http://bugzilla.gnome.org/show_bug.cgi?id=553794 I think this will be a good point for optimizing gobject-based apps. --pancake ___ Vala-list mailing list Vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list

[Vala] bug in vapi

2009-01-26 Thread pancake
follows the cprefix directive and translates it to: r_asm_state_set_arch(R_ASM_ARCH_X86); which is obviously wrong :) PD: This code is from radare libr project (fmi: radare.org) --pancake ___ Vala-list mailing list Vala-list@gnome.org http

[Vala] automatic basic type conversions

2009-01-27 Thread pancake
, or so..) What do you think we should do for this kind of conversions? --pancake ___ Vala-list mailing list Vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list

Re: [Vala] undefined symbol: vala_code_context_set_deprecated

2009-01-27 Thread pancake
it says that it cannot find this symbol. probably you are using valac against the old libvala. check it with ldd Frédéric Gaudy wrote: Hi, I tried vala 0.5.6 to compile my program, but since this version (I used 0.5.3 before) I've got the error message : /usr/bin/valac: symbol lookup error:

Re: [Vala] Coding standard: indentation?

2009-02-09 Thread pancake
Gstreamer have the gst-indent utility to properly setup the standard indentations in the C source files before being commited. We can probably just define these rules also for vala and provide a vala-indent utility. --pancake On 09/02/2009, at 21:49, Phil Housley undeconstruc...@gmail.com

Re: [Vala] Added kill and pid_t to posix.vapi

2009-03-04 Thread pancake
mmh, pid_t is not a struct, is an 'int', in which whay do you get the (int) value of this empty struct? I would rather prefer to do it in another way to allow vala use the 'int' nature of the pid_t type for conversions between numbers, strings and process-id's. Michael 'Mickey' Lauer wrote:

[Vala] Fwd: Replacing void method ( out Type) with Type method()

2009-03-12 Thread pancake
Begin forwarded message: From: pancake panc...@youterm.com Date: March 12, 2009 9:21:07 AM GMT+01:00 To: Adi Roiban a...@roiban.ro Subject: Re: [Vala] Replacing void method ( out Type) with Type method() An atribute to define a method as the one to get a string representation would

[Vala] Operator overloading

2009-03-22 Thread pancake
we can now do: Object obj = new Object(); string str = obj; This is a not very complex situation, but we can for example serialize data types into xml strings in a simple way with this concepts. --pancake ___ Vala-list mailing list Vala-list

Re: [Vala] Operator overloading

2009-03-22 Thread pancake
Yu Feng wrote: On Sun, 2009-03-22 at 15:27 +, pancake wrote: Are there any plans to implement operator overloading in Vala? We can also use the operator overloading to wrap access to optimize paralelized operations to be done in a while by using external APIs like OpemMPI or any liboil

Re: [Vala] Operator overloading

2009-03-24 Thread pancake
that vector assignment isn't copy-on-assign! structures can be easily allocated in the stack frame, and C allows yo uto define values for them in the definitino, so i dont see the problem of copy-on-assign here, because you are always passing a pointer to the structure. my 5c --pancake

Re: [Vala] private extern class methods.

2009-04-06 Thread pancake
The same bug should appear with Solaris and the Sun Studio (aka Forte compiler) you should build everything with -fPIC, can you provide more information about your build ? console output? SElinux doesnt allows symbol relocation because it can be dangerous (can be used for in-memory patching

Re: [Vala] Signal connect syntax

2009-04-15 Thread pancake
lambdas can be used with .connect() ? is there any disconnect_all() or so? Jürg Billeter wrote: The syntax for connecting and disconnecting signal handlers using += and -= has been inherited from the C# syntax. As described in bug 566847 [1], using these operators does not seem appropriate for

Re: [Vala] Autocasting for lambdas

2009-04-23 Thread pancake
Sam Liddicott wrote: * pancake wrote, On 23/04/09 10:33: It is possible to reduce this code? gw.graph.nodes.sort( (a,b) = { Grava.Node *na = a; Grava.Node *nb = b; return (int)(na-y - nb-y); } ); I don't think you can do this, but try it - it would be nice if it would work

[Vala] preprocessor rules

2009-04-23 Thread pancake
it in the wrong way. I find preprocessing rules quite useful for commenting code, because they can comment /* */ comments. Are there plans to support numeric values in preprocessing conditionals? --pancake ___ Vala-list mailing list Vala-list@gnome.org http

Re: [Vala] New service for post code samples in vala or genie

2009-05-07 Thread pancake
Wow! :D that's great! gege2061 wrote: Hi, I am pleased to present a new site to post your code samples/snippets: http://code.valaide.org/ I copied the examples of the wiki, but the goal is not to replace it (it is not possible to add long comments). The best example of the purpose of

Re: [Vala] New service for post code samples in vala or genie

2009-05-08 Thread pancake
Is valadoc.org down? On May 7, 2009, at 11:21 PM, Nicolas Joseph gege2...@gmail.com wrote: Thank's, but the biggest work can be credited to Drupal! For API documentation, I like this idea, but I think the valadoc website seems better for this. 2009/5/7 Andre Osku Schmidt

[Vala] genie # comments

2009-07-14 Thread pancake
for // or /*) --pancake diff --git a/vala/valageniescanner.vala b/vala/valageniescanner.vala index d28ff76..f008c76 100644 --- a/vala/valageniescanner.vala +++ b/vala/valageniescanner.vala @@ -459,7 +459,6 @@ public class Vala.Genie.Scanner { pending_dedents--; indent_level--; - token_begin.pos

Re: [Vala] genie # comments

2009-07-14 Thread pancake
by using a preprocessor like the above oneliner, you can also use an extension of GCC to generate stub code on every function call, use PIN to introspect your program. You should also see gcov(1). --pancake Endi wrote: Maybe you could improve the comment handling code to do sth for this: http

Re: [Vala] Name Mangling

2009-07-23 Thread pancake
The same happens when using C keywords like 'asm'. I can't imagine a clean solution for this :/ int asm=0; Sent from my iPod On Jul 23, 2009, at 1:00 PM, James Cox jamesco...@googlemail.com wrote: Hi Everyone, Has this been discussed before, or even fixed. It's to do with the way Vala

[Vala] Fwd: Name Mangling

2009-07-25 Thread pancake
Sent from my iPod Begin forwarded message: From: James Cox jamesco...@googlemail.com Date: July 24, 2009 11:53:27 AM GMT+02:00 To: pancake panc...@youterm.com Subject: Re: [Vala] Name Mangling Maybe the only solution (all be it not necessarily a clean one) is to keep the current behavior

[Vala] vapi docs

2009-08-08 Thread pancake
vapi files are fine as they are (code only) and add documentation there can make them so much innecesarily bloated. In this way it would be possible to get the documentation like in devhelp. --pancake ___ Vala-list mailing list Vala-list@gnome.org http

[Vala] non-gobject generics

2009-08-21 Thread pancake
{ ^ Compilation failed: 1 error(s), 1 warning(s) Looks like vala does not supoprt to implement non-gobject (aka compact) generic classes, or at least i cannot inherit such methods from there. Is this a bug? or I am doing something incorrect? Thanks! --pancake

Re: [Vala] multiple fields in a single declaration

2009-08-31 Thread pancake
(); } --- pancake wrote: dup http://bugzilla.gnome.org/show_bug.cgi?id=592886 Matías De la Puente wrote: Hi Adam, That issue is already in bugzilla, take a look here http://bugzilla.gnome.org/show_bug.cgi?id=530030 2009/8/31 Adam Dingle a...@yorba.org Vala lets me declare multiple local

Re: [Vala] Need help with string

2009-09-02 Thread pancake
using GLib; public static void main(string[] args) { KeyFile kf = new KeyFile(); try { kf.load_from_file(test.ini, KeyFileFlags.NONE); stdout.printf(== file0=%s\n, kf.get_value(LastFiles, file0)); } catch (FileError err) {

[Vala] Fwd: supressing warnings

2009-09-12 Thread pancake
Begin forwarded message: From: pancake panc...@youterm.com Date: September 12, 2009 10:59:34 AM GMT+02:00 To: Ildar Mulyukov il...@users.sourceforge.net Subject: Re: [Vala] supressing warnings This is implemented in unix since the very old times, it is called 'grep' Dropping warnings

Re: [Vala] Hi, Is Vala what I am looking for?

2009-09-17 Thread pancake
of the code are using any object and so on. This implies duplicating all the memory resources required to run an application. If you do this you will probably end up with another mono/dotgnu/java/parrot. Which is not the aim of vala. --pancake ___ Vala-list

[Vala] bindings from vapi

2009-09-29 Thread pancake
, namespaces, arguments of signatures, etc..? Thanks! --pancake ___ Vala-list mailing list Vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list

[Vala] unions

2009-10-02 Thread pancake
I think there is no support for unions in Vala. Are there plans to support them? Is there a way to represent it in a VAPI? Thanks :) ___ Vala-list mailing list Vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list

Re: [Vala] Anyone know of a vala postgresql hello world example?

2009-10-02 Thread pancake
Added http://live.gnome.org/Vala/PostgreSQL jp0...@jippii.fi wrote: Hi, Here is one. This can be added to Vala page as well. Regards, JP - valac --pkg libpq test.vala -X -lpq - using GLib; using Postgres; public static int main (string[] args) { string conninfo; if

[Vala] constructor/destructor in vala

2009-10-15 Thread pancake
(). Something like this? [(CCode constructor=true)) Will be better to just keep Vala simpler and not add this feature? --pancake ___ Vala-list mailing list Vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list

Re: [Vala] Sharing a trick to use some C macros in VALA

2009-11-01 Thread pancake
I was thinking few time ago to add language support to do this from vala using the offsetof() keyword. Will someone else find interesting such a keyword in vala? Like in sizeof() I was needing it to use kernel's list.h On Nov 1, 2009, at 6:00 AM, Yu Feng rainwood...@gmail.com wrote: Dear

[Vala] editor syntax support

2009-11-13 Thread pancake
What do you think about adding the vala.vim (and others for emacs, gedit..) syntax highlighter scripts inside the vala repository? I think it will be better to keep them tracked in a git repo than in a wiki. Many other languages do it in this way (read acr, parrot, perl6, go, ..) --pancake

Re: [Vala] when will vala 0.8 be released?

2009-11-18 Thread pancake
I hope not. 0.7.8 was released the past week and IMHO there are so many bugs, patches to review before a new release. There are not so many commits these days and I dislike to see version bumps without so many changes. I think Vala core need more maintainers. Btw few weeks ago I got the

Re: [Vala] vala-list.gnome.org

2009-11-18 Thread pancake
Just use the full name with namespaces: new Gee.ArrayList... I have faced this situation some mNy times and wonder if vala supports a way to specify which classes priorize in short name from which namespace. Something like this will be good to have in the language: using Gee (ArrayList);

Re: [Vala] Vala inverse compilation?

2009-11-20 Thread pancake
this is called decompilation and I would really love to see this but also supporting assembly input ;) Andrés G. Aragoneses wrote: For the purposes of having a tool that, instead of converting vala code to C, would do the other way around (GObject-C to Vala), would the current architecture of

Re: [Vala] Realize - proto2

2009-11-20 Thread pancake
I don't see any complication in using libvala to convert from vala to C in memory and then use libtcc to execute the generated C code at runtime. I was looking at libjit few days ago and it can be also used as a backend to generate assembly code on runtime (but it can be also used as a compiler

Re: [Vala] Realize - proto2

2009-11-20 Thread pancake
Mikkel Kamstrup Erlandsen wrote: 2009/11/20 pancake panc...@youterm.com: I don't see any complication in using libvala to convert from vala to C in memory and then use libtcc to execute the generated C code at runtime. I was looking at libjit few days ago and it can be also used

Re: [Vala] Fwd: other Gui-Libaries?

2009-11-24 Thread pancake
Efl is deprecated from some time ago. There's a new library with better GUI concepts in the main enlightenment repo ( yeah, I can't remember the name... E-something) An integration for gtkaml would be good too. On Nov 24, 2009, at 7:32 PM, Andreas Strauss nivels.areve...@googlemail.com

Re: [Vala] Fwd: other Gui-Libaries?

2009-11-24 Thread pancake
installed version of dbus) 2009/11/24 pancake panc...@youterm.com Efl is deprecated from some time ago. There's a new library with better GUI concepts in the main enlightenment repo ( yeah, I can't remember the name... E-something) An integration for gtkaml would be good too. On Nov 24, 2009

Re: [Vala] libvfcgi 0.0.1

2009-11-25 Thread pancake
I have added a link to your project from the main site: http://live.gnome.org/Vala#head-6c7c591339beb12e8ad941afa337a0115567c0b9 Michael B. Trausch wrote: Hi, Some people on the list indicated interest in progress on a FastCGI library for Vala. I have released v0.0.1 of the libvfcgi

[Vala] precompiled vapis

2009-11-27 Thread pancake
of having to parse it. What do you think about it? PD: What's on with the hackaton? Jurg? are you still alive? What's on vala-core? and the bugs? --pancake ___ Vala-list mailing list Vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list

Re: [Vala] Get file characterset

2009-12-03 Thread pancake
Iconv On Dec 3, 2009, at 5:53 AM, Mark Dewey dewem...@gmail.com wrote: How do I determine the encoding of a .txt file without knowing what it is beforehand? That would make GLib.convert quite useful. ___ Vala-list mailing list Vala-list@gnome.org

Re: [Vala] Static linking

2009-12-03 Thread pancake
to run your app. --pancake ___ Vala-list mailing list Vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list

[Vala] Fwd: Getting path to my program's directory

2009-12-05 Thread pancake
Begin forwarded message: From: pancake panc...@youterm.com Date: December 5, 2009 9:21:54 AM GMT+01:00 To: Mark Dewey dewem...@gmail.com Subject: Re: [Vala] Getting path to my program's directory Can you read the documentation? It is there for something, in case of doubt there's always

[Vala] Conditional vapis

2009-12-10 Thread pancake
://bugzilla.gnome.org/show_bug.cgi?id=603473 So, if I do something in vala that uses posix, the generated code is directly unusable on Windows. which solution do you propose? I dont see a clean/simple solution.. but i'm opened to ideas :) --pancake ___ Vala-list

Re: [Vala] Conditional vapis

2009-12-10 Thread pancake
the same Posix namespace. So the final app will need no modification. Sorry for the noise :) pancake wrote: Talking about conditional vapis... what do you think about including io.h and windows.h instead of unistd.h on posix.vapi when including this file on windows? I understand that this should

[Vala] curses vapi

2009-12-19 Thread pancake
here's a patch for the curses vapi adding missing 'resize' function and basic support for mouse. if you wanna try a simple app written in vala+curses check: http://lolcathost.org/b/racu.tar.gz Feel free to apply this curses vapi patch into mainstream --pancake diff --git a/vapi/curses.vapi b

Re: [Vala] Is the C code generated by valac compliant with C89, or C99?

2010-01-14 Thread pancake
There are still issues to make the C code compilable for visual studio[1] [1] https://bugzilla.gnome.org/show_bug.cgi?id=606838 I also found a problem in the swig trying to parse the .h files generated by vala. On 01/14/2010 09:45 AM, Jürg Billeter wrote: On Thu, 2010-01-14 at 15:57 +0800,

Re: [Vala] Immutable variables

2010-01-16 Thread pancake
On Fri, 15 Jan 2010 21:18:11 +0100 Jiří Zárevúcky zarevucky.j...@gmail.com wrote: pancake píše v Pá 15. 01. 2010 v 08:42 +0100: Is there a way to define them? I need it to solve some warnings for the vapis describing some C functions accepting const char* as argument. As I see

[Vala] x11.vapi is broken

2010-01-19 Thread pancake
patch is attached. But probably Vala should priorize the name resolution if the type is defined inside the same namespace (this solution will be better, but will require a patch in vala compiler) This is only broken in git. 0.7.9 is ok --pancake --- prg/vala/vapi/x11.vapi 2009-11-17 11:35

Re: [Vala] x11.vapi is broken

2010-01-25 Thread pancake
var food = X.Drawable(); ^^^ ** (valac:8842): CRITICAL **: vala_ccode_unary_expression_construct: assertion `expr != NULL' failed ** (valac:8842): CRITICAL **: vala_ccode_function_call_add_argument: assertion `expr != NULL' failed /home/pancake/test.vala.c

Re: [Vala] Issue still in master [The base type `Gdk.Drawable` of struct `X.Window` is not a struct]

2010-01-26 Thread pancake
Can you provide a testcase? i was unable to reproduce it last time, so the bug should be reopened. Sandino Flores Moreno wrote: x11.vapi:295.2-295.32: error: The base type `Gdk.Drawable` of struct `X.Window` is not a struct public struct Window : Drawable {

[Vala] [Fwd: Re: Issue still in master [The base type `Gdk.Drawable` of struct `X.Window` is not a struct]]

2010-01-26 Thread pancake
{ ^^^ Compilation failed: 1 error(s), 0 warning(s) On Tue, Jan 26, 2010 at 12:47 PM, pancake panc...@youterm.com wrote: Can you provide a testcase? i was unable to reproduce it last time, so the bug should be reopened. Sandino Flores Moreno wrote: x11.vapi:295.2-295.32: error: The base type `Gdk.Drawable

Re: [Vala] Issue still in master [The base type `Gdk.Drawable` of struct `X.Window` is not a struct]

2010-01-26 Thread pancake
For me it was like that, failing in vala-git but working in 079 On Jan 26, 2010, at 9:07 PM, Jan Hudec b...@ucw.cz wrote: On Tue, Jan 26, 2010 at 12:59:25 -0600, Sandino Flores Moreno wrote: The problem arises when using the package gdk-x11-2.0 Test case: $ cat test.vala void main(string[]

Re: [Vala] Vala Journal, Issue #1

2010-02-03 Thread pancake
can you put the full post in main page? :) its anoying click to read Jiří Zárevúcky wrote: Alessandro Pellizzari píše v St 03. 02. 2010 v 18:23 +0100: Il giorno mer, 03/02/2010 alle 17.52 +0100, Jiří Zárevúcky ha scritto: Based on a few requests, I've created a blog for this. Hope

Re: [Vala] Python bindings for Vala code

2010-02-07 Thread pancake
I'm developing valaswig aiming to provide swig (perl, ruby, python...) bindings for vala and vapi code. It's usable, but still needs so much love. I will release 0.1 next month, but you can get a copy from Hg clone http://hg.youterm.com/valaswig If somebody is interested on it, let me

Re: [Vala] Python bindings for Vala code

2010-02-08 Thread pancake
at some point. On Sun, Feb 7, 2010 at 1:58 PM, pancake panc...@youterm.com mailto:panc...@youterm.com wrote: I'm developing valaswig aiming to provide swig (perl, ruby, python...) bindings for vala and vapi code. It's usable, but still needs so much love. I will release 0.1 next

Re: [Vala] maemo5 hildon input mode

2010-02-09 Thread pancake
I wonder why nokia break gtk instead of contributing to the main branch or make hildon work on normal gtk. I would suggest fixing hildon :) On Feb 9, 2010, at 11:31 PM, Jiří Zárevúcky zarevucky.j...@gmail.com wrote: pHilipp Zabel píše v Út 09. 02. 2010 v 22:44 +0100: 2010/2/9 Jiří

[Vala] Fwd: uchar and uint8. Same? Different?

2010-02-17 Thread pancake
Begin forwarded message: From: pancake panc...@youterm.com Date: February 18, 2010 1:38:12 AM GMT+01:00 To: Sandino Flores Moreno tig...@gmail.com Subject: Re: [Vala] uchar and uint8. Same? Different? This vapi looks wrong. Didn't [] implies a _length variable with no ccodes? Those

[Vala] [Fwd: Re: Fwd: uchar and uint8. Same? Different?]

2010-02-18 Thread pancake
---BeginMessage--- pancake schrieb: Begin forwarded message: From: pancake panc...@youterm.com Date: February 18, 2010 1:38:12 AM GMT+01:00 To: Sandino Flores Moreno tig...@gmail.com Subject: Re: [Vala] uchar and uint8. Same? Different? This vapi looks wrong. Didn't [] implies

Re: [Vala] [Fwd: Re: Fwd: uchar and uint8. Same? Different?]

2010-02-18 Thread pancake
are 6 and 9 bit size. Weird but true :) So, child! take care when compiling Vala programs on PDP and VAX! pancake wrote: Subject: Re: [Vala] Fwd: uchar and uint8. Same? Different? From: bb bblo...@arcor.de Date: Thu, 18 Feb

[Vala] ValaSwig 0.1

2010-03-12 Thread pancake
Today I have released valaswig 0.1 Check the source at: http://radare.org/get/valaswig-0.1.tar.gz ValaSwig is a tool written in Vala that translates vapi files into swig .i interfaces. These interfaces can then be used to generate bindings for python, perl, ruby and lua. The thing is that

Re: [Vala] Singleton and reference count

2010-04-28 Thread pancake
Nope On Apr 28, 2010, at 10:24 AM, Jan Niklas Hasse jha...@gmail.com wrote: 2010/4/28 Sam Wilson tecywiz...@hotmail.com: The only questionable part is that vala doesn't unref namespace scoped variables when the program terminates, so you have to do that manually. Is Vala using Garbage

Re: [Vala] orc bindings and example

2010-05-07 Thread pancake
That's great! I would like to see this in upstream. DId you opened a bug? On 05/04/10 22:09, Fabian Deutsch wrote: Hello, I attached a hand-written orc binding. You can use it, if you know a little bit about orc. About orc: http://code.entropywave.com/git/orc.git

Re: [Vala] Val(a)IDE 0.7.0 - IDE for Vala

2010-05-12 Thread pancake
errr.. broken waf? [panc...@bitbox valide]$ ./waf configure Checking for program gcc,cc : ok /usr/bin/gcc Checking for program cpp : ok /usr/bin/cpp Checking for program ar : ok /usr/bin/ar Checking for program ranlib : ok

Re: [Vala] Val(a)IDE 0.7.0 - IDE for Vala

2010-05-12 Thread pancake
Because I like to be in mainstream :) On 05/12/10 11:34, Nicolas Joseph wrote: No, this version of waf can't detect a development version. This is fixed in next versions. Why you don't use vala 0.8.1? 2010/5/12 pancakepanc...@youterm.com errr.. broken waf? [panc...@bitbox valide]$

Re: [Vala] gtkaml 0.2.10 released

2010-05-15 Thread pancake
it is just more static, which results in faster execution and less memory consumption. On Sat, 15 May 2010 21:05:08 +0200 Luca Bruno lethalma...@gmail.com wrote: On Sat, May 15, 2010 at 09:56:12PM +0300, Vlad Grecescu wrote: Gtkaml is an markup language that reuses the Vala compiler to write

[Vala] help with vapi

2010-05-16 Thread pancake
I'm working on the xmlrpc vapi, but i have some questions about what's the best way to define such abstractions on C. Attached is the vapi file and a example program. Please, tell me which things will you change, and how can I avoid using cname for each function, because looks like cprefix is

Re: [Vala] help with vapi

2010-05-16 Thread pancake
is constructed. I've tried setting body to the public Env() { .. } in the vapi file, but this is not executed. I understand that in vapi files there's support to implement some code, like in glib.vapi, but why this doesnt works? --pancake On Sun, 16 May 2010 15:59:42 +0100 Abderrahim Kitouni a.kito

[Vala] [bug] Fix support for constant and global symbol references

2010-05-17 Thread pancake
://bugzilla.gnome.org/show_bug.cgi?id=618933 Can somebody review it? Thanks! --pancake ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list

[Vala] casting out parameters

2010-05-25 Thread pancake
How can I cast an out parameter? public class Foo {} public class Bar : Foo {} void test(out Foo foo) { foo = new Bar (); } void main() { Bar bar; test (out bar); } a.vala:10.9-10.15: error: Argument 1: Cannot convert from `Foo' to `Bar?' ___

Re: [Vala] casting out parameters

2010-05-26 Thread pancake
Would love to see this dynamic casting supported by the language.. Should I open a bug? - Original message - On Tue, 2010-05-25 at 11:12 +0200, pancake wrote: How can I cast an out parameter? public class Foo {} public class Bar : Foo {} void test(out Foo foo) {       foo

Re: [Vala] casting out parameters

2010-05-26 Thread pancake
Ok :) I got it! Thanks On May 26, 2010, at 7:28 PM, Jürg Billeter j...@bitron.ch wrote: On Wed, 2010-05-26 at 15:41 +0200, pancake wrote: Would love to see this dynamic casting supported by the language.. Should I open a bug? As Nor Jaidi Tuah wrote, the declaration of the method `test

Re: [Vala] casting out parameters

2010-05-27 Thread pancake
And if it's a subclass? Which is what 'as' does. - Original message - On Wed, 2010-05-26 at 15:41 +0200, pancake wrote: Would love to see this dynamic casting supported by the language.. Should I open a bug? As Nor Jaidi Tuah wrote, the declaration of the method `test` does

Re: [Vala] casting out parameters

2010-05-28 Thread pancake
- On Wed, 2010-05-26 at 20:23 +0200, pancake wrote: And if it's a subclass? Which is what 'as' does. 'as' is safe. If the cast is incompatible, you get null. Of course vala could have been designed to allow     test(out bar as Bar) or some other syntax to tell the compiler that we

[Vala] modify simpletype with methods in vapi

2010-05-28 Thread pancake
was expecting both ways to work. what's the way to add this method to bool? should this change be added in main glib.vapi ? --pancake ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list

Re: [Vala] modify simpletype with methods in vapi

2010-05-30 Thread pancake
Yep you are right. It takes no sense to have such a method in a simpletype. I would suggest that vala errors in this situation. To avoid create invalid and no-op methods. Should i open a bug for it? --pancake - Original message - On Sat, 2010-05-29 at 09:40 +0800, Nor Jaidi Tuah

Re: [Vala] modify simpletype with methods in vapi

2010-05-30 Thread pancake
https://bugzilla.gnome.org/show_bug.cgi?id=620120 ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list

Re: [Vala] Rules for updating generated C files

2010-06-04 Thread pancake
b.vala... a.vala This method would be easily integrated with makefiles. --pancake On Jun 3, 2010, at 11:24 PM, Arc Riley arcri...@gmail.com wrote: Please do. This bug affects me too. On Thu, Jun 3, 2010 at 5:13 PM, Robert Powell r...@yorba.org wrote: Hello, My understanding of the current

[Vala] Filling structures

2010-06-04 Thread pancake
and it can cause errors if you only want to specify a single field. But in this case you can just do it like: Foo foo; foo.foo=lalal; which is probably cleaner and makes the language more consistent. What do you think about it? Should I open a bug? --pancake

Re: [Vala] what is the dova profile

2010-06-08 Thread pancake
It's a glib/gobject replacement written in vala. Google for dova-core git repo and compile with --profile=dova to make vala generate code for it. On Jun 8, 2010, at 8:37 AM, Picca Frédéric-Emmanuel frederic-emmanuel.pi...@synchrotron-soleil. Fr wrote: Hello Sorry if it was already asked

Re: [Vala] How to initializes the D-BUS thread system ?

2010-06-09 Thread pancake
I have the same issue but related to g_type_init() when running vala code from C. So I wrote extern void g_type_init(); and then I call it... It's ugly, but works. On Jun 8, 2010, at 6:48 PM, WU Jun qu...@lihdd.net wrote: A program is multi-threaded and compiled using vala with '--thread'

Re: [Vala] Abstract properties in Concrete Class

2010-06-10 Thread pancake
Offtopic: why don't you use? print (test.to_string()); On Jun 10, 2010, at 9:08 AM, Luca Bruno lethalma...@gmail.com wrote: On Wed, Jun 09, 2010 at 10:25:37PM -0400, tecywiz121 wrote: Hello again, This is the second snippet I was curious about. Basically, valac should not allow the

Re: [Vala] support for Python C API

2010-06-19 Thread pancake
You can use valaswig. On Jun 19, 2010, at 5:57 AM, Celil celil...@gmail.com wrote: I am writing Python bindings to a library that is written in Vala. Currently, I need to output the header files, and write the bindings in C. However, tt would be very nice if it was possible to write then

Re: [Vala] support for Python C API

2010-06-19 Thread pancake
matured, to the extent of being able to specify functions to support sequence, mapping, iteration, etc in the PyType definition, its an inadequate solution. On Sat, Jun 19, 2010 at 6:31 AM, pancake panc...@youterm.com wrote: You can use valaswig. On Jun 19, 2010, at 5:57 AM, Celil celil

Re: [Vala] support for Python C API

2010-06-19 Thread pancake
Valaswig is under development. It works for simple stuff like iterators, generics, classes, structs and other stuff. It parses a vapi file and generates a swig interface file. There's valaswig-cc command to directly compile the .so for ruby, python, python, perl and lua. - Original

Re: [Vala] comparison of arrays in Vala

2010-06-19 Thread pancake
Struct comparison was added few time ago.. Maybe we should add the same for arrays. On Jun 20, 2010, at 1:27 AM, Celil celil...@gmail.com wrote: Hello, I just tried the following, and the assertion fails. int[] x = {1,2}; int[] y = {1,2}; assert( x == y); I suppose Vala compares

Re: [Vala] compiling without header files

2010-06-22 Thread pancake
Nope. The same reason you cant build without missing libraries. Vapis are not meant to fully express .h contents. Theres no defines, no enum fixed values, not all struct fields needs to be exposed, etc It could work for simple cases but surely not for real cases. A part that header files

[Vala] Fw: Re: Graphic toolkits for Vala?

2010-07-02 Thread pancake
---BeginMessage--- I wrote grava which is a vala-cairo based canvas to draw graphs and make them interactive. I plan to release something new by the end of summer. In the other side. Graphviz is great. Layouts are not easy to implement and the api could be better. It can render in png or svg,

[Vala] dsync - simple rsync frontend

2010-07-07 Thread pancake
--pancake ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list

[Vala] array declaration

2010-07-07 Thread pancake
type 'void *' error: cc exited with status 256 Thanks --pancake ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list

Re: [Vala] array declaration

2010-07-08 Thread pancake
]; Java: not supported C#: unsafe { int* a = stackalloc int[5]; } @pancake: 'new' combined with the latter type of array does not make sense, since the 'new' keyword stands for dynamic alloation on the heap. The Vala compiler should refuse to compile something like 'int a[] = new int[5]'. So it's

Re: [Vala] array declaration

2010-07-08 Thread pancake
Good C coding practices does not allow to use alloca or dynamically stack allocated arrays because alloca does not specifies what happens when you allocate -1 bytes (or somewhat bigger than the stack assigned to the running thread. I wrote a stackbased allocator which performs 3 times faster

  1   2   3   >