notes about structure
This commit is contained in:
@@ -17,12 +17,14 @@ pub fn main() !void {
|
||||
const alloc = gpa.allocator();
|
||||
|
||||
// todo declare or infer module dependencies, topological sort for init order
|
||||
// problem: how to specify runtime options, like Window title?
|
||||
// problem: where should gpa go? probably some "Engine" structure in nu.zig
|
||||
|
||||
// don't necessarily need to declare topological sort - depth-first traversal
|
||||
// of each module's dependencies without repeats would do.
|
||||
|
||||
// idea - use a structure like std.Build.Step where the polymorphic part is a
|
||||
// component of the larger structure.
|
||||
|
||||
try nu.Window.init(alloc);
|
||||
defer nu.Window.deinit();
|
||||
|
||||
|
Reference in New Issue
Block a user