From 3dc01014596aa93e3b4c036b95993dac41e0bc0b Mon Sep 17 00:00:00 2001 From: whitequark Date: Wed, 3 Aug 2016 23:18:32 +0000 Subject: [PATCH] doc: explain monomorphism of user-defined classes. Fixes #523. --- doc/manual/compiler.rst | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/manual/compiler.rst b/doc/manual/compiler.rst index 81d8e3774..6a8271a5f 100644 --- a/doc/manual/compiler.rst +++ b/doc/manual/compiler.rst @@ -12,10 +12,13 @@ A number of Python features can be used inside a kernel for compilation and exec * 32-bit signed integers (default size) * 64-bit signed integers (use ``int(n, width=64)`` to convert) * Double-precision floating point numbers -* Lists of the above types. +* Lists of any supported types +* User-defined classes, with attributes of any supported types (attributes that are not used anywhere in the kernel are ignored) For a demonstration of some of these features, see the ``mandelbrot.py`` example. +When several instances of a user-defined class are referenced from the same kernel, every attribute must have the same type in every instance of the class. + Remote procedure calls ----------------------