1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/vlib/os
Daniel Däschle 0024ff848d
parser: check if the last or {} block expression is valid
These checks allows for:

a) `x := call() or { 'abc' }`
b) `x := call() or { panic('abc') }`
c) `x := call() or { exit(123) }`
d) `x := call() or { continue }`
e) `x := call() or { break }`
f) `x := call() or { return }`

... but produce errors for:

g) `x := call() or { println('an error') }` , etc.
2020-04-07 17:36:00 +03:00
..
bare freestanding: sys_getuid, sys_waitid; minimal fork check; remove bare.S 2019-12-04 11:46:09 +03:00
cmdline vfmt fixes 2020-02-16 12:42:28 +01:00
const_nix.v v2: simplify the type system; an initial version of the V interpreter 2020-02-02 07:56:18 +01:00
const_windows.v more windows fixes + bring back windows ci 2020-04-02 13:44:46 +02:00
const.v solaris: make 'v test-compiler' pass (stage 2) 2020-03-21 09:48:02 +01:00
environment_test.v os: implement os.environ() (part 2/2) (#3971) 2020-03-10 14:25:16 +01:00
environment.v os: implement os.environ() (part 2/2) (#3971) 2020-03-10 14:25:16 +01:00
inode_test.v vlib: add inode/mode information functionality (#4242) 2020-04-05 00:37:13 +03:00
inode.v vlib: add inode/mode information functionality (#4242) 2020-04-05 00:37:13 +03:00
os_darwin.v update copyright year 2020-01-23 21:04:46 +01:00
os_linux.v update copyright year 2020-01-23 21:04:46 +01:00
os_nix.v cgen: minor fixes. v2 can now compile itself! 2020-03-22 16:55:42 +01:00
os_test.v parser: check if the last or {} block expression is valid 2020-04-07 17:36:00 +03:00
os_windows.v os: optimize os_windows.v 2020-04-04 11:59:25 +02:00
os.v os: implement os.is_writable_folder/1 2020-04-05 16:56:54 +03:00