M
Modular15mo ago
ihnorton

How to re-access struct diagnostic display?

If I define a struct, and then create an instance like this, there is a printout of the struct displayed: struct Foo: var bar: Int def __init__(inout self, b: Int): self.bar = b ... 19> let f = Foo(1) 20. (Foo) f = { (Int) bar = 1 } Is it possible to re-run that struct printout later? f<enter> doesn't do it, and IIUC print is not overloadable - so it errors out as such. So the REPL uses something else: is that function callable?
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server