Next: CVAR - keyword
Up: The CMOD API
Previous: PIKECLASS - keyword
  Contents
PIKEFUN adds a method to the class. It is followed by the corresponding
Pike prototype of the method that is to be added. The whole
implementation of the method is written in between the curly brackets.
The example shows how a method named my_method() is added.
/*Example of usage:*/
PIKEFUN array my_method(string arg1, int|void arg2){}
my_method takes a string as first argument, has an optional
second integer argument, and returns an array. Note here that all data
types are Pike types. That is, the type of the method and the types of
the arguments are all specified using the Pike data type keywords.
2003-03-04