Jump to content

Vala (programming language)

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Porges (talk | contribs) at 06:36, 7 August 2007 (created page). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

Vala is a new (as of 2007) programming language, targeting GNOME's gobject system.

Vala
Paradigmstructured, imperative, object-oriented, f
First appeared2006
Websitevala.dev
Influenced by
C, C++, C#

It has a syntax based upon C#. However, unlike C#, it has no runtime system (Vala is compiled directly to C) and so imposes no additional overhead.

Code example

The "hello, world" program:

using GLib;

public class Sample {
        public void run () {
                stdout.printf ("Hello World\n");
        }

        static int main (string[] args) {
                var sample = new Sample ();
                sample.run ();
                return 0;
        }
}