From 30dd6a1ac1b0894bbcf46497531359e31ca31f91 Mon Sep 17 00:00:00 2001 From: pca006132 Date: Sun, 11 Apr 2021 23:36:18 +0800 Subject: [PATCH] added kernel only class --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index a0ffdda..dec672e 100644 --- a/README.md +++ b/README.md @@ -88,6 +88,14 @@ Only types supported in the kernel can be referenced. does not fit into int32, it would raise an error. (Issue #2) * Only `uint32`, `int32` (and range of them) can be used as index. +### Kernel Only class +* Annotate the class with `@kernel`. +* Functions are all kernel only, including constructor. + +Questions: +* Should we also do `@portable`? +* Support inheritance and polymorphism? + ## Generics We use [type variable](https://docs.python.org/3/library/typing.html#typing.TypeVar) for denoting generics.