[Vala] New params for [ModuleInit]
- From: JM <interflug1 gmx net>
- To: vala-list <vala-list gnome org>
- Subject: [Vala] New params for [ModuleInit]
- Date: Thu, 10 Jun 2010 09:55:49 +0200
Hello everybody
This valac commit shows that there has been some change with
[ModuleInit]:
http://git.gnome.org/browse/vala/commit/?id=5fd7b8cebb983fccdebcd9329671d94c1e5cf826
The example on http://live.gnome.org/Vala/TypeModules is showing an
example exactly as I am using it in my application:
[ModuleInit]
public Type register_plugin (TypeModule module) {
// types are registered automatically
return typeof (MyPlugin);
}
Here, valac reports "error: [ModuleInit] requires a parameter of type `GLib.TypeModule'
public Type init_module() {"
Can someone please tell me what the expected usage of [ModuleInit] would be?
- vala-0.9.1 -
Any hints appreciated!
Regards
Jörn
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]