1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
Commit Graph

14183 Commits

Author SHA1 Message Date
lemon
2a7420f572
native: add initial support for f32/f64 (#16210) 2022-10-26 10:37:46 +03:00
shove
fef4dd94e9
ast, checker, cgen: enable unsafe { nil } with reference to interface fields in structs (fix #16198) (#16199) 2022-10-26 09:39:23 +03:00
yuyi
53c6e46a51
parser: correct comptime path not found error position (fix #16189) (#16209) 2022-10-26 09:33:58 +03:00
Alexander Medvednikov
572e26204e changelog: some 0.3.2 features 2022-10-26 02:34:54 +03:00
Delyan Angelov
b2ab7a333b
transformer: improve -trace-calls output, enable tracing of builtin fns, show elapsed ns and used stack size (#16205)
Make it easier to change later, by splitting the tracing call into its own `v.trace_calls` module, so that it can be iterated upon without changing the compiler itself.
2022-10-25 20:56:12 +03:00
yuyi
03bef24456
checker: fix returning embedded error result (#16208) 2022-10-25 18:17:48 +03:00
StunxFS
76606598c3
cleanup: delete database.db in project root folder (#16190) 2022-10-25 10:43:17 +03:00
kahsa
779cc33825
doc: rename module to package, when it comes to all VPM commands like v install etc (#16180) 2022-10-24 18:00:55 +03:00
kahsa
d3fcb6bca0
doc: add a subheading for creating new modules (#16188) 2022-10-24 17:56:34 +03:00
Delyan Angelov
00ec41e0a9
ci: small fix for docs.md 2022-10-24 17:32:01 +03:00
Alexander Medvednikov
690b2c0b9d doc: more Result fixes 2022-10-24 16:26:19 +03:00
Alexander Medvednikov
2c9e890c3d
doc: document the Option/Result split 2022-10-24 16:11:20 +03:00
yuyi
4aa4af4afb
cgen: fix vweb app route methods filtering (#16186) 2022-10-24 12:51:20 +03:00
kahsa
26c737b6db
doc: move goto section under statements (#16179) 2022-10-24 12:09:14 +03:00
shove
701586fa84
checker, cgen: enable calls to methods of the parent element array, when an array element is an alias (fix #16169) (#16187) 2022-10-24 12:02:24 +03:00
Swastik Baranwal
f25dfa9d8c
checker: add error for unwrapped result in infix expr (#16175) 2022-10-24 11:53:35 +03:00
yuyi
48f43f11ea
all: change optional to result in vlib/v. (#16177) 2022-10-24 11:51:20 +03:00
Ikko Ashimine
26986104f9
cgen: fix typos (#16174) 2022-10-23 22:28:58 +03:00
yuyi
7b8044b8c4
cgen: fix using 'array' name variable in array_init (#16168) 2022-10-23 22:23:15 +03:00
Wertzui123
340611c298
net: add a net.tcp_socket_from_handle_raw function (#16167) 2022-10-23 22:21:46 +03:00
kahsa
158fd5c249
doc: TOC add missing h3 (#16170) 2022-10-23 22:17:20 +03:00
kahsa
235bd87db5
doc: improve TOC (#16166) 2022-10-23 17:31:50 +03:00
Delyan Angelov
9241b5572b
net.http: skip network timeouts on socket accept in the main http.Server loop 2022-10-23 17:08:27 +03:00
kahsa
00bd7b621d
doc: minor fix (#16164) 2022-10-23 14:30:59 +03:00
kahsa
2d08c7b629
doc: fix headings under Grobal Variables (#16162) 2022-10-23 14:21:25 +03:00
yuyi
3f035205b3
cgen: fix return result in or block (#16158) 2022-10-23 13:11:11 +03:00
kahsa
33b2b4c6a1
doc: add link to template.md (#16155) 2022-10-23 13:07:22 +03:00
shove
721dbec2e4
checker: fix missed check on the initialization of result struct fields (fix #16152) (#16153) 2022-10-22 20:02:11 +03:00
Spydr
83338e044a
native: fix small issues with compile-time conditionals (#16149) 2022-10-22 19:56:19 +03:00
shove
b8b2b4ad0a
checker: fix the pos information in the warning message, when the label is not used (fix #16146) (#16148) 2022-10-22 19:26:38 +03:00
Hitalo Souza
3d4ffe8f28
examples: unskip vweb_orm_jwt from building, since it is not working directly with mysql anymore (#15671) 2022-10-22 19:12:54 +03:00
Delyan Angelov
a23e06184d
checker: fix taking a closure of x, where x may be coming from a non trivial parent scope, like for x in y { or x,y := multi() (fix #16141) (#16147) 2022-10-22 15:53:27 +03:00
l-m
a139bed785
builtin: add string.trim_indexes method, that can be used in string.trim, but also separately from it (#16144) 2022-10-22 12:56:05 +03:00
yuyi
b6faf82911
parser: minor optimization in sql_expr() (#16145) 2022-10-22 12:11:45 +03:00
yuyi
9288c75c94
parser: simplify and cleanup check_undefined_variable() (#16140) 2022-10-22 11:26:21 +03:00
shove
e863191ff6
checker: fix generic information is lost of the map built-in method call (fix #16077) (#16134) 2022-10-21 23:07:05 +03:00
yuyi
ab78d5a7ba
parser: check undefined variable in if guard (#16138) 2022-10-21 22:48:59 +03:00
Delyan Angelov
b40f1828b2
ci: re-enable building VEX in v_apps_and_modules_compile.yml 2022-10-21 10:44:59 +03:00
Makhnev Petr
2e8b9e3b92
v fmt: fix extra space for anon struct (#16131) 2022-10-21 10:38:19 +03:00
bogen85
c684dd8c9b
log: mark log.fatal as [noreturn] (#16129) 2022-10-21 10:33:49 +03:00
yuyi
51f4d99399
all: change optional to result in most of the libraries (#16123) 2022-10-20 22:14:33 +03:00
yuyi
0d368562f4
cgen: minor optimization and cleanup in match_expr_sumtype() (#16126) 2022-10-20 20:36:56 +03:00
locriacyber
a3b050aced
vrepl: add support for Home and End keys (#16116) 2022-10-20 20:07:57 +03:00
yuyi
f8a28b5a5d
checker: check generic method called with a variadic argument mismatch (fix #16106) (#16110) 2022-10-20 15:28:30 +03:00
shove
07310d850d
ast, cgen: fix wrong name and cname, when array and fixed array elements have optional (fix #16099) (#16122) 2022-10-20 14:17:57 +03:00
Delyan Angelov
2083e6b04c
os: cleanup APIs returning !bool to either return ! or bool (#16111) 2022-10-20 13:56:06 +03:00
Swastik Baranwal
ac63fa1b11
parser: improve error for fixed array, when it has len and cap attributes in the initialisation list (#16120) 2022-10-20 13:36:13 +03:00
Delyan Angelov
ffcdac4201
ci: fix v_tictactoe.out after 05a1c3e 2022-10-19 22:33:10 +03:00
Delyan Angelov
05a1c3e8a3
parser,ci: fix regression after eda65ad in the VLS tests 2022-10-19 22:29:08 +03:00
yuyi
612faac0f0
all: change index expr returning optional to result too (#16097) 2022-10-19 21:04:16 +03:00