add new and init to toolchain
This commit is contained in:
@@ -626,8 +626,9 @@
|
||||
- typed allocation, allocator parameters, arenas/pools, build-mode heap policy, and escaping-allocation diagnostics remain deferred
|
||||
|
||||
26. import from project "root" (implemented)
|
||||
- imports beginning with `@` resolve from the compiler process cwd / project root
|
||||
- `heap :: import "@std/mem/heap"` works from any package depth without `../../../` path math
|
||||
- imports beginning with `@` resolve from the project root
|
||||
- `brolang build [root]` uses `root` as the project root; without `root`, it searches cwd and parents for `build.bro`
|
||||
- direct `brolang <package-dir> -o <out>` defaults the project root to the package dir; `--root <dir>` overrides it
|
||||
|
||||
27. comptime integer value parameters (implemented; v1)
|
||||
- `$N` marks an integer comptime parameter in a normal `func` signature:
|
||||
@@ -715,6 +716,8 @@
|
||||
`root/build.bro` (importing `@std/build`'s `BuildConfig`) and compiles the
|
||||
program package it names. The config is read from the checked HIR — build.bro
|
||||
is never lowered — so it is literal-only.
|
||||
- `brolang new <project>` and `brolang init` create the default project layout
|
||||
with local `std`, `ffi`, `vendor`, `source`, and `build.bro`
|
||||
- enabled `&<array literal>` (Zig's `&.{...}`): the literal is promoted to an
|
||||
anonymous global whose address decays to a slice, so list fields like
|
||||
`libraries = &["raylib"]` work; empty lists are `&[]`
|
||||
|
||||
Reference in New Issue
Block a user