3 ms·
Hmmm, the "[..]" is a fat pointer right? Couldn't you just say: int main(char [..] args) Maybe with some way to tell the compiler the correct parameter or
by elcritch 4y ago
Hmmm, the "[..]" is a fat pointer right? Couldn't you just say:
int main(char [..] args)
Maybe with some way to tell the compiler the correct parameter order if needed? Perhaps:
int main(char [..argc] argv)
I'm curious if ELF and other formats have enough info to figure that mapping out?
- WalterBright 4y ago> the "[..]" is a fat pointer right? yes > if ELF and other formats have enough info to figure that mapping out? No, as there is no semantic connection between `argc` and `argv`.