4 ms·
Yet I've skimmed the entire site and nowhere do I see mentioned how to use C libraries in V. I don't have to convert C to V and then compile the entire V progr
by bartl 8y ago
Yet I've skimmed the entire site and nowhere do I see mentioned how to use C libraries in V.
I don't have to convert C to V and then compile the entire V program, do I?
- bunderbunder 8y agoI doubt it, but it's hard to tell. More will become clear once they've actually released the langauge - as it is, this whole website seems super premature, since neither the language itself nor the source code to any real software written in it are available for public consumption. The documentation that exists is minimalist enough that I would be very careful about assuming it represents a complete representation of the language's features.
- amedvednikov 8y agoGood point, I'll add an example. It's just `C.puts('hello')`
- edflsafoiewq 8y agoHow do you include the header with puts though?
- amedvednikov 8y ago#include <stdlib.h> fn main() { C.puts('hello') }
- ncmncm 8y agoThis is an important point. amedvednikov is the author. It is hard to interpret it. The V compiler parses C?