Symbolic/Inline Class #1568
EmilyBourne
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We have the concept of an inline function, but I think that a similar concept could be useful for classes. An inline class could be flagged using inheritance:
All functions of such a class would be inlined and the member variables would be declared in place of the class itself.
Therefore the following code:
would be translated to:
This implementation could then be used to write non-homogeneous tuples using class notation. It would also be useful for implementing the
commclass in mpi4py.cc: @yguclu
Beta Was this translation helpful? Give feedback.
All reactions