Compare commits

..

2 commits

Author SHA1 Message Date
2bb8fa903f Add missing dotfiles 2026-10-20 11:22:54 +00:00
e288f4e098 Make Test class static 2026-10-20 11:22:40 +00:00
3 changed files with 33 additions and 22 deletions

1
.envrc Normal file
View file

@ -0,0 +1 @@
use flake

10
.gitignore vendored Normal file
View file

@ -0,0 +1,10 @@
# Nix
result*
# Misc
.direnv
# CMake
build/
.cache/

View file

@ -7,8 +7,6 @@
static struct Object* static_method(struct Object* self);
static struct Object* instance_method(struct Object* self);
int main()
{
struct Method Test_meta_methods[] = {
{ .sel = "staticMethod", .impl = static_method },
};
@ -31,6 +29,8 @@ int main()
.methods_count = sizeof(Test_methods) / sizeof(struct Method),
};
int main()
{
msg_send((struct Object*)&Test, "staticMethod");
struct Object* obj = msg_send((struct Object*)&Test, "alloc");