Christoffer Lerno
14a929588a
Confusing error message when type has [] overloaded but not []= #2453
2025-09-02 23:56:15 +02:00
Christoffer Lerno
02d1486af9
- Compiler assert with var x @noinit = 0 #2452
2025-09-02 23:39:00 +02:00
Christoffer Lerno
bab317282c
Update version to 0.7.6
2025-09-01 16:21:48 +02:00
Christoffer Lerno
a3a6319bcf
Fix tests
2025-09-01 13:32:40 +02:00
Christoffer Lerno
17dfbb377e
Fixed test.
2025-09-01 13:05:14 +02:00
Christoffer Lerno
ff39f14dd1
$defined(Foo x = $vaexpr[0]) works correctly.
2025-09-01 12:09:14 +02:00
Christoffer Lerno
af4309b286
$defined returns an error when assigning a struct initializer with an incorrect type #2449
2025-09-01 10:44:19 +02:00
Christoffer Lerno
176fb47c23
Update to 0.7.5 release candidate.
2025-09-01 02:11:08 +02:00
Christoffer Lerno
3a69c9f1fe
Fix test.
2025-09-01 01:18:17 +02:00
Christoffer Lerno
944cc00d34
Fix regression on splat.
2025-09-01 01:14:39 +02:00
Christoffer Lerno
a751177a3e
Const enum methods are not being recognized. #2445
2025-08-31 23:56:48 +02:00
Christoffer Lerno
d291a40f69
Compiler hangs on == overload if other is generic #2443
...
Fix missing end of line when encountering errors in project creation.
2025-08-31 23:40:55 +02:00
Christoffer Lerno
cb006dd715
- Compiler module-scope pointer to slice with offset, causes assert. #2446
2025-08-31 23:18:27 +02:00
Christoffer Lerno
c7f09f2879
Disambiguate types when they have the same name and need cast between each other.
2025-08-31 15:16:52 +02:00
Christoffer Lerno
c0387221af
Fix regression where files were added more than once. #2442
2025-08-31 12:07:10 +02:00
Christoffer Lerno
0c7c5fbd7b
Update MAP_ANONYMOUS for Linux
2025-08-31 00:27:01 +02:00
Christoffer Lerno
fafcf3d0a9
Enum inference, like Foo x = $eval("A"), now works correctly for $eval.
2025-08-30 15:24:11 +02:00
Christoffer Lerno
b757f1447b
Fix incorrect priority filtering. Move ??? to features.
2025-08-30 13:22:10 +02:00
LowByteFox
bc3d9d761f
fix buffer overflow when deallocating an object and implement asan poisoning for unused memory
2025-08-30 11:31:35 +02:00
Christoffer Lerno
10bc68fb39
Fixed regression with optional argument macros and lambdas.
2025-08-30 01:00:24 +02:00
Christoffer Lerno
de8aed9d96
Enable $defined((void)#hash)
2025-08-29 23:24:32 +02:00
Christoffer Lerno
1080303768
Using ... to expand elements.
2025-08-29 16:30:28 +02:00
Christoffer Lerno
0503e15e31
Fix error message for $case after $switch
2025-08-29 14:42:07 +02:00
Christoffer Lerno
ca2fabc9f9
- $defined(#hash) will not check the internal expression, just that #hash exists.
...
- Added optional macro arguments using `macro foo(int x = ...)` which can be checked using `$defined(x)`.
- Supplemental `roundeven` has a normal implementation.
2025-08-29 11:23:39 +02:00
Christoffer Lerno
0178a44b3c
Add some initial ability to compile for a limited set of backends because of narrow-minded LLVM maintainers. 640 kb is good enough for anybody.
2025-08-28 20:38:14 +02:00
Christoffer Lerno
8f3cb9c6e9
Add more comments to mem functions.
2025-08-28 18:23:01 +02:00
Christoffer Lerno
c339278ff7
String.bformat has reduced overhead.
2025-08-28 12:12:22 +02:00
Christoffer Lerno
47316dac59
Add compile time ternary $val ??? <expr> : <expr>.
2025-08-28 01:56:05 +02:00
Christoffer Lerno
90d3f429aa
- @test/@benchmark on module would attach to interface and regular methods.
2025-08-28 00:28:32 +02:00
Christoffer Lerno
239d249f01
- Added $kindof compile time function.
...
- Deprecated `@typekind` macro in favour of `$kindof`.
- Deprecated `@typeis` macro in favour of `$typeof(#foo) == int`.
2025-08-27 20:38:12 +02:00
Christoffer Lerno
7312c10b9e
- @is_const is deprecated in favour of directly using $defined.
...
- `@is_lvalue(#value)` is deprecated in favour of directly using `$defined`.
2025-08-27 18:21:55 +02:00
Christoffer Lerno
3c6e6f1965
Make log and exp no-strip.
2025-08-27 14:41:19 +02:00
Christoffer Lerno
28b9be64ee
Update error message for missing body after if/for/etc #2289 .
2025-08-27 12:37:01 +02:00
Christoffer Lerno
d2cae909e1
A file with an inferred module may not contain additional other modules.
2025-08-27 11:42:53 +02:00
Christoffer Lerno
e194081e21
Fix test.
2025-08-27 10:45:59 +02:00
Christoffer Lerno
04cc34f12e
Fix correct ? after optional function name when reporting type errors.
2025-08-27 09:33:25 +02:00
Christoffer Lerno
f7143c1852
Fix tests, reenable LLVM 22
2025-08-26 20:55:58 +02:00
Christoffer Lerno
1781e97f02
Update jumptable codegen.
2025-08-26 20:34:44 +02:00
Christoffer Lerno
c17cb7d0ca
Fix alignment on jump table.
2025-08-26 20:09:04 +02:00
Christoffer Lerno
21343baa75
Update for LLVM 21 ( #2435 )
...
Support LLVM 21
2025-08-26 17:29:39 +02:00
Christoffer Lerno
58c59361ea
- Add linklib-dir to c3l-libraries to place their linked libraries in. Defaults to linked-libs
...
- If the `os-arch` linked library doesn't exist, try with `os` for c3l libs.
2025-08-26 15:21:45 +02:00
Christoffer Lerno
cb17cfff7d
Deprecation of @assignable_to
2025-08-26 13:21:42 +02:00
Christoffer Lerno
1634217fc4
Grabbing (missing) methods on function pointers would cause crash #2434 .
2025-08-25 16:39:17 +02:00
Christoffer Lerno
bc9b0900a5
- Inlining a const as an lvalue would take the wrong path and corrupt the expression node.
2025-08-25 15:26:47 +02:00
Christian Brendlin
f43a7540c5
clarify directory creation error messages ( #2388 )
...
* Improve error messages for project creation
---------
Co-authored-by: Christoffer Lerno <christoffer@aegik.com >
2025-08-25 14:56:59 +02:00
Zack Puhl
410a25f334
Add array @reduce, @filter, @any, @all, & @indices_of ( #2419 )
...
* wip: array reduce and any/all
* wip: continue adding more functional-like array module functions
* wip: documentation and other fixes
* finish unit tests, require INDEX variable in lambdas, ready for first review
* don't worry about iterating by ref (it wasn't passing it that way anyhow)
* update release notes again
* simplify, remove "summary operators" and related tests
* Use more $defined, remove "has_operator". Fix regression in `$defined(var $f = 123)`
---------
Co-authored-by: Christoffer Lerno <christoffer@aegik.com >
2025-08-25 14:47:08 +02:00
Zack Puhl
35c04cdc36
Add form-feed and vertical tab to trim defaults ( #2407 )
...
* Add form-feed and vertical tab to` trim` defaults
* add some initial string-based benchmarking
* update to non-const string
* do not account for mem times in bench
* misc bench fixes to repair reporting times; improve trim tests
* ok last one for real..remove (void) casts
* finally, swap to more efficient default whitespace order in `trim`
2025-08-25 14:23:14 +02:00
Christoffer Lerno
3e641ab82b
Properly add "inlined at" for generic instantiation errors #2382 .
2025-08-25 13:31:56 +02:00
Christoffer Lerno
7972397c65
Incorrect name on wincrt, likely a regression.
2025-08-24 13:54:52 +02:00
Christoffer Lerno
9bf933ae31
- has_tagof on tagged lambdas returns false #2432
2025-08-23 23:41:32 +02:00