Jarl Gullberg

Results 105 comments of Jarl Gullberg

Looking at your code, there are several mismatches between the C# side and the native side. Overall tips: * May want to check the size of `int` on your platform...

`int` tends to be 32-bit, even on 64-bit platforms - it's mostly pointer size you need to worry about. I would use raw pointers for struct members, and then have...

It looks like you might be using a newer version of .NET that has more nullability information than what it had when I last used the code - you can...

I've got the same issue on Mint 18. CLion 2016.3.2 Build #CL-163.10154.43, built on December 21, 2016 Licensed to Jarl Gullberg Subscription is active until August 2, 2017 JRE: 1.8.0_112-release-408-b6...

@hemu Hi, strong opinon here :) It's better to be explicit in the documentation rather than leave it up to interpretation of an accompanying descriptive text. There is a mechanism...

An alternative would be to separate it out into individual structures for each trigger type and show that there is an "inheritance" or tagged union approach that way.

That is true, though I would argue that those objects are also wrong to not mark the fields as optional and leave it to a loosely attached description. On Mon,...

@Joe4evr That's precisely what I'm saying. My static doc generator, which in the past did not need runtime instantiation of the modules, now transitively requires it because Discord.NET performs an...

Alright, so there are workarounds in place for the common cases, but that still doesn't leave me with any option for reflection-only inspection of command modules without writing my own...

We're not talking about the same thing, then; I'm referring to a static site generator, not a static code inspector. The generator uses reflection to generate a static markdown site....