The following functions are classless. They work generally on lists or symbolic atoms, which in wwlisp are not objects instantiated from classes. Classless functions can be of type subr, fsubr, expr, fexpr or macro. In wwlisp, the arguments of some functions are placed differently than in other lisps and dialects, because the first argument of any function determines the class of the function, and if this argument is classless (ie evaluates to a symbolic atom or a list), then a classless function will be called instead of a method of the class of the argument. |
Function Type | subr |
Arguments | a float or an integer |
Return Value | a float |
Description | the function returns a float which is between 0.000000 and 360.0, but that highest limit not included; if the input value is less than 0.000000 or equal to or greater than 360.0, as much full circles will be added or subtracted as needed to have the result between the bounds |
Example | (fold -45.0) => 315.000000 |
Function Type | subr |
Arguments | one, any type |
Return Value | t or nil |
Description | returns t if the argument is of the class gdimage directly or by inheritance (ie: is a subclass of) |
Example | (gdimagep(make-instance gdimage 100 100)) => t |
Function Type | subr |
Arguments | a stream object |
Return Value | a list |
Description | returns a list containing the type of image file, the width and the height of the image; resets the file pointer to its original place after use, so that other IOs are not perturbated |
Example | (imageinfo imgfile) => (jpeg 600 480) |
Function Type | subr |
Arguments | a string |
Return Value | a list |
Description | returns a list containing the type of image file, the width and the height of the image; |
Example | (imageinfo "myimage.gif") => (gif 200 75) |