Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API

From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@12bitfloat I'm pretty sure that's because of old C rules assuming things are int. Someone please double-check though
-
@BordedDev If there's no type, the default is int I believe
But if you actually have a parameter of type ExampleBase*... can you just replace that with int*??? -
Still very often the same in more modern languages.
Just write
let x =
And leave the rest open. It is of course caught, but the LSP already spits out a guess. Mostly strings for some reason -
@Demolishun This isn't in code really, it's when you run `clang -Xclang -ast-dump=json -fsyntax-only` to get a json dump of the ast
-
retoor47689dCool people use tcc as their compiler. Edit: oh, cpp. Cool people use gcc as their compiler.
-
pretty soon people will be snorting whip cream and putting hats up their asses trying something new to see if it works since everything else is the province of stupid people who lie.
-
@AvatarOfKaine objects in a computer program are hallucination of the programmer. Once it is machine code there is no concept of objects anymore. It becomes pointers, data, and instructions. If the code generates correctly it works and does what you want.
-
retoor47689d@Demolishun I think that that it's the reason why many people do not get computers. They just see it as smth not real. Nothing wrong with it tho, I have the same with people who blow leafs for a living. So useless.
Related Rants
-
linuxxx32*client calls in* Me: good morning, how can I help you? Client: my ip is blocked, could you unblock it for m...
-
DRSDavidSoft28
Found this in our codebase, apparently one of my co-workers had written this
-
linuxxx23*client calls* "hello, we forgot the password to our WiFi router. Could you reset that for us?" 😐😶😮...
I just had the most confusing error ever where clang ast randomly replaced classes with just int in type signatures
...wat? I guess the class only has one int field so maybe there's a cpp rule that requires replacing classes with their only field or something?
But when I add other fields it doesn't change. Even if the class has no int fields, it's still replaced by int in the ast
....
Yeah turns out I had the definitions in the wrong order and clang just uses int for unknown types instead of... you know maybe raising a fucking error
Thanks clang...
rant
wtf