Branch: Tag:

2013-11-18

2013-11-18 20:05:35 by Henrik Grubbström (Grubba) <grubba@grubba.org>

random: lfun::_random() now actually is a (fake) lfun.

lfun::_random() now behaves like a proper lfun.

Moved some documentation around accordingly.

178:    "_serialize",    "_deserialize",    "_size_object", +  "_random",   };      struct pike_string *lfun_strings[NELEM(lfun_names)];
239:    tFuncV(tObj tZero, tVoid, tVoid), /* "_serialize", */    tFuncV(tObj tZero, tVoid, tVoid), /* "_deserialize", */    tFuncV(tZero, tVoid, tInt), /* "_size_object", */ +  tFuncV(tNone, tVoid, tMix), /* "_random", */   };      /* These two are not true LFUNs! */
1285:    *! @[Serializer.Serializable()->_deserialize()]    */    + /*! @decl mixed lfun::_random() +  *! Called by @[random()]. Typical use is when the object implements +  *! a ADT, when a call to this lfun should return a random member of +  *! the ADT or range implied by the ADT. +  *! +  *! @seealso +  *! @[predef::random()] +  */ +    /*! @decl mixed lfun::`symbol()    *! @decl mixed lfun::`->symbol()    *!