Skip to content

Commit

Permalink
doc: explain monomorphism of user-defined classes.
Browse files Browse the repository at this point in the history
Fixes #523.
whitequark committed Aug 3, 2016
1 parent a9e944f commit 3dc0101
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion doc/manual/compiler.rst
Original file line number Diff line number Diff line change
@@ -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
----------------------

0 comments on commit 3dc0101

Please sign in to comment.