gingerBill
e10257f86a
Fix slicing logic of a FCD array to check if it can be sliced or not
2026-03-25 14:11:22 +00:00
gingerBill
59eaa13625
Fix indexing logic of FCD arrays
2026-03-25 14:10:08 +00:00
gingerBill
a9e81e01aa
Allow addressing of an index expression of an soa slice/dynamic array
2026-03-25 14:08:39 +00:00
gingerBill
85eeca2f03
Add missing generic #soa pointers to parapoly handling system
2026-03-25 10:15:58 +00:00
Harold Brenes
4f6caf19f0
Ensure checking for proc property equality before checking param assignability
2026-03-23 21:15:12 -04:00
Harold Brenes
147542b5cc
Allow pointers to types which have subtype fields at offset 0
...
to be assignable in proc parameters.
```odin
// Virtual interface
IFoo :: struct {
foo: proc( self: ^IFoo ),
}
// Implements IFoo interface
Foo :: struct {
using vt: IFoo,
name: string,
}
// Implement interface via `Foo`
Foo_Impl :: IFoo {
// `self` of type `^Foo` (not `^IFoo`) is now accepted as a valid parameter.
foo = proc( self: ^Foo ) {
...
},
}
```
2026-03-23 20:55:44 -04:00
gingerBill
85c05b238e
Handle bit fields separately
2026-03-17 13:50:49 +00:00
gingerBill
d28e19c957
Minor improve to check if the entity was already there
2026-03-17 13:47:02 +00:00
gingerBill
153a522228
Use normal i64 arithmetic instead of big-ints for hot path
2026-03-17 13:34:06 +00:00
gingerBill
46936e0e52
General improvements
2026-03-17 12:55:25 +00:00
gingerBill
e18b15e8f0
Move error-only things to the error scopes
2026-03-17 12:16:44 +00:00
gingerBill
b19e89578f
Improve check_struct_fields performance; use CheckerTypePath free list
2026-03-17 11:42:03 +00:00
gingerBill
04cb889aed
Begin interning ScopeMap strings
2026-03-17 11:04:32 +00:00
gingerBill
36d5a19115
Replace Scope.elements to use a custom hash map ScopeMap
...
This hash map is robin hood based with a inline slot amount for small scopes
2026-03-16 17:41:58 +00:00
gingerBill
1744f57d01
Use permanent_alloc_item directly rather than through the gb_alloc_item generic interface
2026-03-16 16:03:27 +00:00
gingerBill
0314c91a64
Add error message for foo := Foo{&foo} where the type of foo is not determined yet
2026-03-15 16:16:46 +00:00
gingerBill
c6772dfd06
Merge branch 'master' into bill/fixed-capacity-dynamic-array
2026-03-15 11:41:01 +00:00
gingerBill
117e3a7b5a
Merge branch 'master' of https://github.com/odin-lang/Odin
2026-03-15 10:34:01 +00:00
gingerBill
ca73cd395f
Fix #6412
2026-03-15 10:33:52 +00:00
Jeroen van Rijn
27667ce36b
iff -> if and only if (⟺)
2026-03-13 11:54:15 +01:00
gingerBill
a6160770ff
Support compound literals for fixed capacity dynamic arrays
2026-03-12 10:03:58 +00:00
gingerBill
f1dbe9c242
[dynamic; N]T proof of concept: fixed capacity dynamic array (akin to small_array.Small_Array(N, T))
2026-03-11 16:46:33 +00:00
Franz Hoeltermann
b351b58ddc
Fix #6270
2026-03-03 17:22:31 +01:00
Louis Novy
e3d6fe72f8
fix broken bit_set parapoly specialization #6240
2026-03-01 20:58:43 -08:00
gingerBill
c0468446f6
Ignore const nil "optimization" and fix c: Maybe(string); c == "" bug.
2026-02-24 18:52:42 +00:00
gingerBill
7c9ac5a777
Try to improve the error handling for procedure groups
2026-02-19 13:51:20 +00:00
Jeroen van Rijn
6386b395de
Add -did-you-mean-limit:N
...
```
-did-you-mean-limit:<integer>
Sets the maximum number of suggestions the compiler provides.
Must be an integer >0.
If not set, the default limit is 10.
```
e.g. with a limit of 5
```
W:/Scratch/main.odin(44:7) Error: Undeclared name 'B1' for type 'E'
e = .B1
^^
Suggestion: Did you mean?
A23
A02
A19
A20
A21
... and 25 more ...
```
2026-02-13 15:15:03 +01:00
gingerBill
67541434f4
Remove else check for untyped to typed
2026-01-29 11:58:37 +00:00
gingerBill
07d814d9cf
Add struct #simple to force a struct to use simple comparison if all of the fields "nearly simply comparable".
2026-01-29 10:49:26 +00:00
gingerBill
27bd72c18a
Fix constant indexing within a call that doesn't exist
2026-01-26 19:15:40 +00:00
gingerBill
3586bda6ae
Use context.assertion_failure_proc with type assertions when the context is available, otherwise use a trivial trap.
2026-01-26 18:23:29 +00:00
Jeroen van Rijn
cd684ed7a0
Merge pull request #6159 from Barinzaya/fix-const-bitset-contains
...
Fix `in`/`not_in` on constant `bit_set`s
2026-01-24 14:32:33 +01:00
Jeroen van Rijn
e0ff16f98c
Fix #6126
...
`ExactValue_Compound` wasn't handled properly.
2026-01-24 10:53:38 +01:00
Barinzaya
5e4895e76d
Fixed some issues with in and not_in on constant bit_sets.
...
This addresses two issues:
- With a `bit_set` having no underlying type and a non-zero lower bound,
`in` and `not_in` were returning incorrect results when done at
compile-time.
- With a `bit_set` of more than 128 bits, `in` always returns false on
values that fall within the upper 64 bits.
2026-01-23 16:19:46 -05:00
gingerBill
b0064f38cf
Minor rearrange of check_is_operand_compound_lit_constant for future optimization prep
2026-01-22 13:17:54 +00:00
gingerBill
16254ed8fa
Merge pull request #6119 from slowhei/master
...
Fix assertion error when imported proc groups are passed as proc arguments
2026-01-16 09:16:25 +00:00
gingerBill
5f07055ac1
Add #must_tail and "preserve/none" calling convention
2026-01-15 17:28:28 +00:00
gingerBill
0366cd3304
Add #must_tail (similar syntax to #force_inline
2026-01-15 16:32:52 +00:00
gingerBill
0f875727a2
Merge branch 'master' of https://github.com/odin-lang/Odin
2026-01-11 18:54:55 +00:00
gingerBill
5938c783a6
Fix #type not being handled as in normal expressions
2026-01-11 18:54:46 +00:00
ske
3e31055ca7
Fix regression in #6118
2026-01-10 10:46:53 -03:00
Tohei Ichikawa
bf7c92bf09
Fix assertion error when imported proc groups are passed as proc arguments
2026-01-10 03:05:04 -05:00
ske
91c1950b9f
Fix constant conversion checks ( #6104 )
2026-01-07 02:19:41 -03:00
Harold Brenes
ef33e55182
Fix auto objc_msgSend incorrectly treating certain class methods as instance methods.
2025-12-29 15:31:12 -05:00
gingerBill
c5a54a0e52
Do naive compound literal comparison for $ parameters to parapoly procedures
2025-12-15 10:41:50 +00:00
gingerBill
aed11c4619
Remove debug string
2025-12-15 10:19:59 +00:00
gingerBill
ae314a4c6b
Propagate array arithmetic fix
2025-12-15 09:43:29 +00:00
gingerBill
56876e32da
Present constant array arithmetic error correctly
2025-12-15 09:42:08 +00:00
gingerBill
79ef9f0a43
Fix #6003
2025-12-09 12:47:49 +00:00
gingerBill
4ce01854d5
Improve error positioning for #all_or_none
2025-11-06 09:37:16 +00:00