Skip to content

Structs with reference fields #18541

Discussion options

You must be logged in to vote

What will be the designed solution in the future?

struct Node {
	a ?&Node
	b ?&Node
}

n := Node{}
c := n.a or { ... }

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by felixf4xu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants