Replies: 2 comments
-
I don't get it. If you do
Why using comptime reflection should it works? |
Beta Was this translation helpful? Give feedback.
0 replies
-
ok, I was thinking I tested that case and was working. I see that it's not working, It will be good at least to raise an error if v doesn't wish to be able to handle. I think will be really usefull to be able to do the cast/wrap, correctly. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the bug
Code: https://vosca.dev/p/d563469814
Expected Behavior
In this case, s should be unpacked from the Object interface, to assign correctly the original struct to the property.
Current Behavior
is assigning the C Object (representing the V interface) directly to the field, not detecting the change of type on the progress.
The output field, you get allways a count != 0 (as it's pointing to the wrong place in memory)
Output:
Reproduction Steps
Simply run the program, and you will see it.
Possible Solution
when doing the reflection, V should detect the type of the field at which are we accessing, and process it as normal code
Additional Information/Context
I'm using the following version:
V 0.3.4 e2f18fc
V version
V 0.3.3 fc4c431.e738d67
Environment details (OS name and version, etc.)
Beta Was this translation helpful? Give feedback.
All reactions