Alexandros Naskos
Alexandros Naskos
I think this scheme makes sense, I'm planning to do this for zls as well.
> API must be event loop compatible This is already the case, if I'm not mistaken (well, not completely on windows, I believe interacting with AFD is necessary for async...
Yes, I will be looking into pike's AFD code for sure, seems interesting. It also will determine some of the ways the event loop implementation has to change, at least...
I quite like this proposal personally. The one modification I would make would be to require macro arguments to be comptime
I also prefer a userspace solution to this problem. Something roughly along the lines of: ```zig const Any = struct { const Self = this; _type: type, value: *const u8,...
@BraedonWooding The type erasure code I posted in that comment seems to work in comptime (I did just a couple of tests), so something similar would be fine I think.
The code works on windows in cmd.exe, ConEmu and the git bash console for both targets, not sure why wine fails.
I will work on this one if you don't mind.
`*T -> [*]T` currently does not work even with explicit casting, `*T -> *[1]T -> [*]T` is required. The rest do not explicitly cast either. I'm leaving this up here...
@Hejsil Right, I was saying those cases do not work without @ptrCast, since you can't "just" cast from one of those types to another, I'm not disagreeing :)