Christoffer Lerno

Results 1219 comments of Christoffer Lerno

```c tagged union Foo : int { int a; int b; char* c; } Foo f = ... switch (f) { case Foo.a: ... case Foo.b: ... } if (try...

```c union Foo @tagged(int) { int a; int b; char* c; } ... Foo f = ... switch (f.tag) { case Foo.a.tag: ... } if (f.tag == Foo.a.tag) { ......

@pierrec That is also a possibility. But probably if there is `try` etc with changes the semantics, then it needs to be a completely different type. So the question is...

@DrGo The latter loses the ability to place the "kind" variable though, so that one cannot as efficiently pack the tagging enum. ```c // Size = 12 struct Shape {...

Note that @deprecated is in, but there is no version flag yet. In a sense we want this to hook up with a general versioning on libraries, so the basic...

One possibility is simply this: `@deprecate("Use foo instead", .since = "[email protected]", .removed = "mylib@4")` To unpack this: 1. First argument gives the compile information. 2. Optional "since" both says (1)...

There are problems with target clones in GCC/Clang as they don't work on all platforms. Better push this to userland.

So the question is if this is necessary? I think it doesn't seem that essential.

Is it sufficient with the ordinal which is in?

So the drawback of "Proposal 2" is that you would not have that property for all faults: ```c fault Abc (String s) { FOO("foo here"), BAR("was bar") } fault Def...