Allow .allocator for dynamic arrays; Add mem.Pool
This commit is contained in:
1 parent
915dcb0c28
commit
e9e7ce2606
8 files changed
+253
-142
No files matched your search
@@ -587,28 +587,6 @@ array_programming :: proc() {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
using println in import "core:fmt"
|
||||
|
||||
using_in :: proc() {
|
||||
fmt.println("# using in");
|
||||
using print in fmt;
|
||||
|
||||
println("Hellope1");
|
||||
print("Hellope2\n");
|
||||
|
||||
Foo :: struct {
|
||||
x, y: int,
|
||||
b: bool,
|
||||
}
|
||||
f: Foo;
|
||||
f.x, f.y = 123, 321;
|
||||
println(f);
|
||||
using x, y in f;
|
||||
x, y = 456, 654;
|
||||
println(f);
|
||||
}
|
||||
|
||||
named_proc_return_parameters :: proc() {
|
||||
fmt.println("# named proc return parameters");
|
||||
|
||||
@@ -745,7 +723,6 @@ main :: proc() {
|
||||
parametric_polymorphism();
|
||||
threading_example();
|
||||
array_programming();
|
||||
using_in();
|
||||
named_proc_return_parameters();
|
||||
enum_export();
|
||||
explicit_procedure_overloading();
|
||||
|
||||
Reference in new issue
Block a user