Re: [Vala] sqlite needs more love



On Fri, 2007-11-09 at 14:22 +0100, pancake wrote:
Let's fill!!1

    [ErrorDomain]

        * This one is to setup GLib error domains.

[ErrorDomain]
enum MyLibraryError
{
  FATAL
}

public bool func() throws MyLibraryError
{
  throw new MyLibraryError.FATAL("This is message");
}

    [Import ()]

            The implementation of this function is external to Vala (C?)

Yup, but declaration is generated by vala.

    [IntegerType (rank = 1)]
    [FloatingType (rank = 1)]


      Type checking attribute? When this have to be used?

Probably never. This is used only in glib-2.0.vapi for various
integer/float type definitions.

          valastruct.vala says:

    [HasEmitter]

          * Specifies whether this signal has an emitter wrapper function.
              What does this means?

Used in bindings to specify if vala can emit given signal using wrapper
function <class_name>_<signal_name>() or if vala has to use
g_signal_emit_by_name("signal_name", ...).

        o.j.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]