Kaya 0.5.3 reference for Coercions::void

List of functions and data types in Coercions

Void void(a x)

Arguments

Usage

Coerces any value to Void (i.e. discards it), usually used for discarding the result of a function. For example, the HTMLDocument functions for adding elements to the tree return the element just added, which is often not necessary.

p = addParagraph(doc.body,"Hello ");
void(appendInlineElement(p,StrongEmphasis,"World!"));

Another use is in discarding the return value from database update queries

kaya@kayalang.org | Last modified 29 November 2011 | Supported by Durham CompSoc | Powered by Kaya