Closed vitreo12 closed 3 years ago
the implementation is dead easy:
template bubu() : untyped =
something.data
maybe using the :=
operator?
template `:=`(what : untyped, with : untyped) : untyped =
template what() : untyped {.dirty.} =
with
a := 10
struct Something:
data Data
init:
something = Something(Data())
sample:
bubu := something.data
out1 = bubu[0]
bubu[0] = in1
Coming with 0.3
This syntax is very awful, but it's just to show the purpose of something like this: