v/vlib/builtin
2023-12-16 18:27:30 +03:00
..
js builtin: deprecate string.last_index/1 for string.index_last/1, and string.last_index_u8/1 for string.index_u8_last/1 (#20095) 2023-12-05 13:56:59 +02:00
linux_bare all: unwrap const() blocks 2023-11-25 10:02:51 +03:00
wasm all: unwrap const() blocks 2023-11-25 10:02:51 +03:00
wasm_bare vlib: change byte to u8 (#19930) 2023-11-19 04:23:32 +03:00
wchar all: update attributes to use new syntax 2023-11-15 16:16:01 +11:00
array.v all: update attributes to use new syntax 2023-11-15 16:16:01 +11:00
array_d_gcboehm_opt.v Revert "strings: fix using array_push_many inside write_string + gc, not using array_push_many_noscan (part 1)" 2023-12-01 21:45:35 +02:00
array_flags_test.v builtin: add .nogrow and .nofree flags to array (#16661) 2022-12-14 09:44:14 +02:00
array_notd_gcboehm_opt.v builtin, cgen: fix array of struct with map field initialize (fix #17325) (#17340) 2023-02-18 20:34:15 +02:00
array_sorted_test.v builtin: implement array.sorted() and array.sorted_with_compare() methods, that do not modify their receivers (#19251) 2023-09-01 09:12:00 +03:00
array_test.v all: unwrap const() blocks 2023-11-25 10:02:51 +03:00
backtraces.c.v native, builtin, ast: handle ast.HashStmt correctly and reduce macro usage in builtin (#19498) 2023-10-04 16:42:15 +03:00
backtraces_nix.c.v native, builtin, ast: handle ast.HashStmt correctly and reduce macro usage in builtin (#19498) 2023-10-04 16:42:15 +03:00
backtraces_windows.c.v all: unwrap const() blocks 2023-11-25 10:02:51 +03:00
builtin.c.v vlib: use the builtin flush functions, instead of the C. ones (#20108) 2023-12-07 18:24:27 +02:00
builtin.v all: implement $for comptime T.variants (#20193) 2023-12-16 18:27:30 +03:00
builtin_android_outside_termux.c.v android: provide more predictable logging, add comptime termux support (#14984) 2022-07-07 18:28:29 +03:00
builtin_backtraces_d_musl.c.v all: update attributes to use new syntax 2023-11-15 16:16:01 +11:00
builtin_backtraces_nix.c.v builtin: improve musl/Alpine support (define weak backtrace/backtrace_symbols/backtrace_symbols_fd symbols) (#14250) 2022-05-03 09:17:53 +03:00
builtin_d_gcboehm.c.v builtin: pass USE_MMAP when compiling the GC library on freebsd, when tcc is not used (#20006) 2023-11-27 07:35:17 +02:00
builtin_d_use_libbacktrace.c.v all: update attributes to use new syntax 2023-11-15 16:16:01 +11:00
builtin_ios.c.v
builtin_nix.c.v all: update attributes to use new syntax 2023-11-15 16:16:01 +11:00
builtin_notd_gcboehm.c.v builtin: heap memory usage api (#18103) 2023-05-03 20:33:52 +03:00
builtin_notd_use_libbacktrace.c.v all: update attributes to use new syntax 2023-11-15 16:16:01 +11:00
builtin_test.c.v all: update attributes to use new syntax 2023-11-15 16:16:01 +11:00
builtin_windows.c.v all: unwrap const() blocks 2023-11-25 10:02:51 +03:00
byte_test.v all: byte => u8 2022-04-15 14:58:56 +03:00
cfns.c.v os: fix File.tell for files > 2GB on windows, by using C._telli64(f.fd) (#20072) 2023-12-03 03:58:01 +02:00
cfns_wrapper.c.v all: update attributes to use new syntax 2023-11-15 16:16:01 +11:00
chan.v
character_inout.c.v builtin: add input_character/0 and print_character/1 (#19502) 2023-10-04 04:40:03 +03:00
character_inout_test.v builtin: add input_character/0 and print_character/1 (#19502) 2023-10-04 04:40:03 +03:00
float.c.v all: update attributes to use new syntax 2023-11-15 16:16:01 +11:00
float_test.v vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
float_x64.v all: 2023 copyright 2023-03-28 22:55:57 +02:00
gated_array_string_test.v
int.v all: unwrap const() blocks 2023-11-25 10:02:51 +03:00
int_notd_new_int.v native: use i32 instead of int 2023-10-08 02:50:01 +03:00
int_test.v all: unwrap const() blocks 2023-11-25 10:02:51 +03:00
isnil_test.v all: wrap up unsafe { nil } (p. 3) 2022-07-21 21:01:30 +03:00
lambda_expr_array_test.v checker: allow for each(a, |x| println(x)), i.e. using lambda expressions, when expecting fn (x int) 2023-09-27 11:49:12 +03:00
map.c.v vlib: change byte to u8 (#19930) 2023-11-19 04:23:32 +03:00
map.v all: unwrap const() blocks 2023-11-25 10:02:51 +03:00
map_d_gcboehm_opt.v all: assigning 0 to reference fields now requires unsafe blocks (fix #14911) (#19955) 2023-11-23 11:16:26 +02:00
map_of_floats_test.v vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
map_test.v builtin: fix m.len to 0, after calling map.clear() (#16720) 2022-12-22 21:36:33 +02:00
option.c.v all: update attributes to use new syntax 2023-11-15 16:16:01 +11:00
option.v all: update attributes to use new syntax 2023-11-15 16:16:01 +11:00
prealloc.c.v all: update attributes to use new syntax 2023-11-15 16:16:01 +11:00
README.md
result.v fmt: fix interface fields alignment (#19866) 2023-11-15 18:17:35 +02:00
rune.v all: update attributes to use new syntax 2023-11-15 16:16:01 +11:00
rune_test.v all: byte => u8 2022-04-15 14:58:56 +03:00
sorted_lambda_expr_test.v all: support short lambda expressions like a.sorted(|x,y| x > y), in all callsites that accept a fn callback (#19390) 2023-09-20 17:22:16 +03:00
sorted_map.v all: unwrap const() blocks 2023-11-25 10:02:51 +03:00
sorting_test.v all: unwrap const() blocks 2023-11-25 10:02:51 +03:00
string.v builtin: deprecate string.last_index/1 for string.index_last/1, and string.last_index_u8/1 for string.index_u8_last/1 (#20095) 2023-12-05 13:56:59 +02:00
string_charptr_byteptr_helpers.v all: update attributes to use new syntax 2023-11-15 16:16:01 +11:00
string_int_test.v checker: more precise error handling of large binary literals like 0b1000_0000_0000_0000_0000_0000_0000_0000_0000_0000_0000_0000_0000_0000_0000_0000 (#16775) 2022-12-27 15:13:15 +02:00
string_interpolation.v all: unwrap const() blocks 2023-11-25 10:02:51 +03:00
string_match_glob_test.v
string_strip_margin_test.v all: 2023 copyright 2023-03-28 22:55:57 +02:00
string_test.v builtin: deprecate string.last_index/1 for string.index_last/1, and string.last_index_u8/1 for string.index_u8_last/1 (#20095) 2023-12-05 13:56:59 +02:00
string_trim_indent_test.v all: 2023 copyright 2023-03-28 22:55:57 +02:00
utf8.c.v all: update attributes to use new syntax 2023-11-15 16:16:01 +11:00
utf8.v all: update attributes to use new syntax 2023-11-15 16:16:01 +11:00
utf8_test.v vlib: add a new module builtin.wchar, to ease dealing with C APIs that accept wchar_t* (#18794) 2023-07-07 02:40:11 +03:00

Description:

builtin is a module that is implicitly imported by every V program.

It implements the builtin V types array, string, map.

It also implements builtin functions like println, eprintln, malloc, panic, print_backtrace.

The autogenerated documentation for builtin functions is lacking, so for these functions, please refer to the official V documentation.