*/
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
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
:
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
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
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
project ;)
--pancake
___
Vala-list mailing list
Vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list
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
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
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
, 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
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:
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
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:
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
{
^
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
();
}
---
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
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) {
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
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
, namespaces, arguments of signatures, etc..?
Thanks!
--pancake
___
Vala-list mailing list
Vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list
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
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
().
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
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
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
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
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);
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
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
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
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
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
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
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
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
to run your app.
--pancake
___
Vala-list mailing list
Vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list
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
://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
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
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
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,
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
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
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
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 {
{
^^^
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
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[]
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
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
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
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ří
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
---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
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
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
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
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
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
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]$
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
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
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
://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
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?'
___
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
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
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
-
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
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
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
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
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
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
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
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'
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
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
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
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
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
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
---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,
--pancake
___
vala-list mailing list
vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list
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
];
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
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 - 100 of 218 matches
Mail list logo