Christoffer Lerno

Results 1217 comments of Christoffer Lerno

Can we please not close these unless done? The whole point was to have a list of things that’s needed to do. Unless you just fixed it in a check...

:D I promise. The point of opening this one was that I didn't feel able to resolve it myself. I was unsure what you were planning in terms of extending...

Compiles to `test_Foo foo = test_Foo`

Btw I enabled sizeof(Foo.x) where x is a member of Foo. So I first saw this when it swallowed i32 a = Foo.a for exactly the same reasons. I thought...

No, I mean that the type could be manipulated as an entity and assigned to variables. ”Foo.a” is treated as a reference to the member of Foo called ”a”. For...

I have a pretty good idea, but it touches code that is affected by the open pull requests, so any fixes need to wait.

If it was a lang from scratch I would have suggested a sigil if you wanted to access a struct member in a struct function, but that is too much...

Any updates?

The only alternative to `do { } while (0)` is simple {}, since we need to protect the defer scope. Consider: defer { int a; } int a; This does...

Defer at function end would require closures. Also, it would be completely different to implement. If you want this feature. Call it ”func defer” or something, implement it later. Its...