Ryan
Ryan
MModular
Created by toasty on 5/30/2024 in #questions
Is it possible to store a list of References in Struct?
Something like this
var arr = InlineArray[command, 10](command())
var cli = CLI[True, __lifetime_of(arr)]()
# if it had an add method
cli.add(arr[i])
var arr = InlineArray[command, 10](command())
var cli = CLI[True, __lifetime_of(arr)]()
# if it had an add method
cli.add(arr[i])
10 replies
MModular
Created by toasty on 5/30/2024 in #questions
Is it possible to store a list of References in Struct?
It is possible if the items going into the list share a lifetime. If they are stored together in some other structure you can use that structures lifetime for the list. Or maybe you could use a MutableStaticLifetime for the list.
10 replies
MModular
Created by diro5t on 3/10/2024 in #questions
Debugger not stopping
6 replies
MModular
Created by diro5t on 3/10/2024 in #questions
Debugger not stopping
I have the same issue, but not in codespaces, just vscode. Should I file a separate issue?
6 replies