You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
typeFoo=object
data:inttypeBar {.borrow: `.`.} =distinctFoolet x =Bar(data:0)
since I'd expect Bar to behave the same as if I just copied the type definition of Foo.
Description
I propose the code above to be treated as a valid code with the meaning of
typeFoo=object
data:inttypeBar=distinctFoolet x =BarFoo(data:0)
Alternatives
One alternative is to use the original type object constructor followed by the type change. If that gets tedious, one can create an init proc. Nevertheless the proposed syntax seems cleaner and intuituve.
The text was updated successfully, but these errors were encountered:
Summary
I feel like the following should be a valid code
since I'd expect
Bar
to behave the same as if I just copied the type definition ofFoo
.Description
I propose the code above to be treated as a valid code with the meaning of
Alternatives
One alternative is to use the original type object constructor followed by the type change. If that gets tedious, one can create an init proc. Nevertheless the proposed syntax seems cleaner and intuituve.
The text was updated successfully, but these errors were encountered: