X-Git-Url: https://git.draconx.ca/gitweb/gob-dx.git/blobdiff_plain/5b42e9400440d86723a27747b2191ab8cd59c2ee..3379dcdfd0872947d761053c61d773add94d38c2:/doc/gob.1.in diff --git a/doc/gob.1.in b/doc/gob.1.in index df1472b..a2724c6 100644 --- a/doc/gob.1.in +++ b/doc/gob.1.in @@ -508,6 +508,22 @@ The onerror value is also used in overrides that have a return value, in case there isn't a parent method, PARENT_HANDLER will return it. More about this later. .PP +Default return: +.PP +Some signal and virtual methods have a return type. But what happens if +there is no default handler and no one connects to a signal. GOB will +normally have the wrappers return whatever you specify with onerror or '0' +if you haven't specified anything. But since 0.93.2 you can specify a default +return value with the keyword 'defreturn'. It's use is identical to the +use of onerror, and you can in fact use both at the same time. Example +.nf + + virtual int get_some_int(self) onerror -1 defreturn 10 ; + +.fi +That is an empty virtual method (in C++ terms a pure virtual). If you never +specify any handler for it in the derived children it will just return 10. +.PP Constructor methods: .PP There are two methods that handle the construction of an object, init and