Geo7
MModular
•Created by Geo7 on 10/30/2023 in #questions
How to Implement Recursive data type
Again I changed it and now getting new error, I can not post it here (I reached the limit)
I posted it on github discussion
https://github.com/modularml/mojo/discussions/1194
6 replies
MModular
•Created by Geo7 on 10/30/2023 in #questions
How to Implement Recursive data type
is there a way to use memory.unsafe.bitcast to solve this ?
6 replies
MModular
•Created by Geo7 on 10/30/2023 in #questions
How to Implement Recursive data type
I can not convert AST to value & register_passable, then I get an other error:
no matching function in call to 'init':
var child1 = AST()
~~~^~
candidate not viable: callee expects at least 1 argument, but 0 were specified
6 replies
MModular
•Created by Geo7 on 10/30/2023 in #questions
How to Implement Recursive data type
OK, I've done that now I could not implement add_child()
I'm getting this error:
6 replies
MModular
•Created by Geo7 on 10/30/2023 in #questions
How to Implement Recursive data type
How could I create child1 without any children?
6 replies
MModular
•Created by Geo7 on 10/18/2023 in #questions
How to store Struct(or string) into DynamicVector
Thanks a lot, silly mistake 🙂
7 replies
MModular
•Created by Geo7 on 10/18/2023 in #questions
How to store Struct(or string) into DynamicVector
Thanks for the responses,
I tried @NKspartan example and it is working,
But when I tried to write 2 helper function it does not work anymore what I've done wrong?
7 replies