Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is allowed or not in kernels? #63

Closed
weierstrass1 opened this issue Feb 3, 2020 · 1 comment
Closed

What is allowed or not in kernels? #63

weierstrass1 opened this issue Feb 3, 2020 · 1 comment
Labels

Comments

@weierstrass1
Copy link

I have a question, when you do a kernel, what is allowed?

for example can kernel:

  • call functions of static classes?
  • use Convert._(param) (for example Convert.Int32(foo))
  • use custom classes or structs?
  • use local parameters if it is called into a method?
  • use class variables if it is called into a class?
    etc...
@m4rs-mt
Copy link
Owner

m4rs-mt commented Feb 3, 2020

@weierstrass1 Kernels can call other static functions and "instantiate" other (user-defined) structure types. Reference types (such as strings) are not supported, since they generally require heap-based memory management. There will be limited support for class types in the future. A selection of different functions and examples can be found in the samples repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants