Re: [Vala] My first (very positive) impressions of Vala

2011-07-10 Thread Serge Hulne
It is merely a matter of putting : "tar zcvf valadoc.tgz ./valadoc", in a scipt, followed by a command to ftp it to a given location on a the valadoc server. It can be run via cron, therefore it can be automated. Serge. On Mon, Jul 11, 2011 at 8:40 AM, Luca Bruno wrote: > On Mon, Jul 11, 20

Re: [Vala] Question regarding passing a strings as arguments to a method

2011-07-10 Thread Serge Hulne
It is correct in a sense, but again it is misleading. - A C++ programmer might interpret it as: f(std::string s), which implies a copy, as opposed to: f(std::string& s). - A Visual Basic programmer might interpret it as : f(ByVal test As String) which is obviously not what is intended. I am not s

Re: [Vala] How to view Valadoc in Devhelp

2011-07-10 Thread Luca Bruno
On Mon, Jul 11, 2011 at 08:22:50AM +0800, linmx0130 wrote: > Hi all, > I hope to view valadoc in devhelp.What should I do? > Sorry for my impoliteness last time. Thanks everyone who will answer me. Valadoc in general can generate devhelp files using the devhelp doclet, but you have to generate the

Re: [Vala] My first (very positive) impressions of Vala

2011-07-10 Thread Luca Bruno
On Mon, Jul 11, 2011 at 08:09:15AM +0200, Serge Hulne wrote: >1. More examples (I intend to contribute actively to that aspect). The wiki is open fore contributions. >2. Provide a way to generate the documentation locally (like Javadoc or >Pydoc or godoc). >- Valadoc does not seem

Re: [Vala] Question regarding passing a strings as arguments to a method

2011-07-10 Thread Luca Bruno
On Mon, Jul 11, 2011 at 07:10:45AM +0200, Serge Hulne wrote: > If one has a look at the C code generated by Vala for the following > two examples, it appears that the "unowned" keyword has no influence > on the way > the string b (of type gchar*) is passed to f(). > > In both cases, it is passed a

[Vala] My first (very positive) impressions of Vala

2011-07-10 Thread Serge Hulne
*My first (very positive) impressions of Vala * 1. Vala is very productive. I have written a custom-made scanner for processing text in the format which we use in our company. - The code is barely longer than the equivalent Python code, but much faster (Python in know to be conc

Re: [Vala] Question regarding passing a strings as arguments to a method

2011-07-10 Thread Serge Hulne
If one has a look at the C code generated by Vala for the following two examples, it appears that the "unowned" keyword has no influence on the way the string b (of type gchar*) is passed to f(). In both cases, it is passed as a pointer (without duplication). Therefore it seems to me that the Val

Re: [Vala] Threads and closures problem

2011-07-10 Thread Jim Peters
On Thu, January 14, 2010 21:22, JM wrote: > Looks like closures and threads are incompatible right now. I came across exactly the same issue when trying to pass a parameter to a thread. The problem is to maintain a reference to the closure which can be released when the closure is no longer neede

[Vala] How to view Valadoc in Devhelp

2011-07-10 Thread linmx0130
Hi all, I hope to view valadoc in devhelp.What should I do? Sorry for my impoliteness last time. Thanks everyone who will answer me. Michael Lin ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list

Re: [Vala] Is there a way to use the Vala coroutines to achieve the same effect as in the following Python snippet (coroutines returning partial results in an iterator-like way) ?

2011-07-10 Thread Nor Jaidi Tuah
> Use your fantasy before going down to conclusions :) Wow! A brilliant fantasy! I think that's close enough to having syntax support. Generator should be in Vala (how about in 0.13.1 :-) hand Nor Jaidi Tuah ___ vala-list mailing list vala-list@gnome

Re: [Vala] Question regarding passing a strings as arguments to a method

2011-07-10 Thread Гаврилов Максим
Strings are passed by value. To avoid this use "unowned" keyword. 11.07.2011 1:36 пользователь "Serge Hulne" написал: > The Vala tutorial says: > "*Parameter Directions* ** > > *A method in Vala is passed zero or more arguments. The default behaviour > when a method is called is as follows: * > >

[Vala] Help with Variant and DBus

2011-07-10 Thread Borja Rodríguez Diliz
Hi all! Playing with dbus-monitor I've seen this signal : signal sender=:1.7 -> dest=(null destination) serial=169 path=/org/freedesktop/NetworkManagerSettings/0; interface=org.freedesktop.NetworkManagerSettings.Connection; member=Updated array [ dict entry(

[Vala] Question regarding passing a strings as arguments to a method

2011-07-10 Thread Serge Hulne
The Vala tutorial says: "*Parameter Directions* ** *A method in Vala is passed zero or more arguments. The default behaviour when a method is called is as follows: * - *Any value type parameters are copied to a location local to the method as it executes. * - *Any reference type paramete

Re: [Vala] using the notification area/systray

2011-07-10 Thread Chris Molozian
Hey, Vala is a programming language designed to simplify Gtk and GLib programming by providing higher level abstractions on those APIs. Vala by itself cannot draw an icon to the system tray. This can be achieved using the Gtk toolkit. The Gtk.StatusIcon

[Vala] using the notification area/systray

2011-07-10 Thread rastersoft
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all: I'm working on a program in Vala and I need to paint an icon on the notification area (or system tray). I've been searching for an specific API in Vala, but haven't found it. Is there something that simplifies it? Thanks. - -- Nos leemos

[Vala] How to view valadoc with Devhelp?

2011-07-10 Thread linmx0130
I hope to view valadoc in Devhelp. How to do it? ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list