diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-06-25 22:31:30 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-06-25 22:31:30 +0100 |
| commit | 3ab481df17d35ac0ac66f0bb619885e43dc060f1 (patch) | |
| tree | a5c7a17498c4e369adcaddb187bb03549f8a48e1 /src/check_expr.cpp | |
| parent | 4e7150b470fe9a0b0794fa9bdbac49ffc2c113be (diff) | |
`new` as a user-level procedure
Diffstat (limited to 'src/check_expr.cpp')
| -rw-r--r-- | src/check_expr.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp index 460c449da..2e9a80a67 100644 --- a/src/check_expr.cpp +++ b/src/check_expr.cpp @@ -3784,7 +3784,7 @@ bool check_builtin_procedure(Checker *c, Operand *operand, AstNode *call, i32 id switch (id) { - case BuiltinProc_new: + // case BuiltinProc_new: case BuiltinProc_make: case BuiltinProc_size_of: case BuiltinProc_align_of: @@ -3878,6 +3878,7 @@ bool check_builtin_procedure(Checker *c, Operand *operand, AstNode *call, i32 id operand->type = type; } break; + #if 0 case BuiltinProc_new: { // proc new(Type) -> ^Type Operand op = {}; @@ -3890,6 +3891,7 @@ bool check_builtin_procedure(Checker *c, Operand *operand, AstNode *call, i32 id operand->mode = Addressing_Value; operand->type = make_type_pointer(c->allocator, type); } break; + #endif #if 0 case BuiltinProc_new_slice: { // proc new_slice(Type, len: int) -> []Type |