From 956cd84ca545f1d93e2218cbbdbb39c81a46bec8 Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Fri, 28 Aug 2026 17:44:38 +0200 Subject: implement other builtins --- src/root.zig | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/root.zig') diff --git a/src/root.zig b/src/root.zig index 471267f..ff7e017 100644 --- a/src/root.zig +++ b/src/root.zig @@ -6,6 +6,9 @@ pub const Dict = @import("Dict.zig"); pub const Str = @import("Str.zig"); pub const Tuple = @import("Tuple.zig"); pub const Fn = @import("function.zig").Fn; +pub const Int = @import("Int.zig"); +pub const Float = @import("Float.zig"); +pub const List = @import("List.zig"); pub const Error = error { Exception, @@ -18,9 +21,9 @@ pub const conversion = struct { return *info.pointer.child; } - pub fn Ptr(value: anytype) Error!PtrFromCPtr(@TypeOf(value)) { - if (value) |ptr| { - return ptr; + pub fn ptr(value: anytype) Error!PtrFromCPtr(@TypeOf(value)) { + if (value) |p| { + return p; } return error.Exception; -- cgit v1.2.3-70-g09d2