feat(resolve): add version-constraint-aware dep resolution with binary fallback
This commit is contained in:
@@ -21,4 +21,7 @@ One exception class for the entire types module — no separate subclasses per e
|
||||
### Task 4: Manual char scanning for dep spec parsing
|
||||
Rather than pulling in `std.regex`, the parser uses hand-written `isNameChar()` and `isWhite()` helpers with a simple position cursor. This keeps the module dependency-light (only `std.ascii`). The logic is a direct 1:1 port of the Lua reference patterns: `[A-Za-z0-9_.+-]` for names/versions, whitespace `[ \t]` for separators.
|
||||
|
||||
### Task 12: `delegate` keyword in test lambdas for delegate-typed parameters
|
||||
D non-capturing lambdas infer as `function` pointers, which cannot implicitly convert to `delegate`-typed parameters. The explicit `delegate` keyword (`scope f = delegate (...) { ... };`) forces the correct type. This pattern is needed for resolution seam delegates that production code will instantiate with captures (e.g. closing over `Config cfg`).
|
||||
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user