The V Programming Language

Simple, fast, safe language created for developing Volt, soon available for everyone.

Open source release in June 2019. Early access since April 15.
Install V from source in 0.5 seconds
wget && gcc -o v v.c

Globals and C translation

Apr 15 · 3 min read
vktec Jun 21 08:48
It's my understanding that V doesn't allow global variables. However, many C programs use globals, either because the programmer was too lazy to do it differently or because the APIs used require the use of globals. How does the automatic C->V translator handle this?
medvednikov Jun 21 14:48
V allows them only in translated code, no way around it.
medvednikov Jun 21 14:49
V knows that the code has been translated. Right now it is specified with a flag.
vktec Jun 21 21:19
Oh, that's an interesting workaround. So if the flag was specified manually, it would be possible to use globals?
Log in via GitHub to comment

Powered by vtalk, open-source blogging/forum software written in V