shBLOCK
shBLOCK
MModular
Created by shBLOCK on 10/26/2023 in #questions
Compile time properties?
Also, vector swizzling is already doable in mojo with parameterization, but the syntax won't be convenient. (for example like this: Vec3(1,2,3).swiz["zxy"]())
10 replies
MModular
Created by shBLOCK on 10/26/2023 in #questions
Compile time properties?
Yeah, I've read the doc and they said they would let you take basically full control of the compilation process, that would probably be one way to achieve what I wanted, but I think there could be easier ways to do this (considering the cool meta-programming features already implemented by parameterization). I will make an github issue about this. (btw, I'm sorry if my language seems a bit harsh, I'm not a native English speaker.)
10 replies
MModular
Created by shBLOCK on 10/26/2023 in #questions
Compile time properties?
(By the way, the Cython library I was talking about is here: https://github.com/shBLOCK/GdMath)
10 replies
MModular
Created by shBLOCK on 10/26/2023 in #questions
Compile time properties?
This probably won't work well with auto-completion out-of-the-box though.
10 replies
MModular
Created by shBLOCK on 10/26/2023 in #questions
Compile time properties?
Did you read the part about "swizzling"? I want something more advanced than just @property. (More closed to the customizability of __getattr__(), but compile-time)
10 replies