From 73a5e8f19c533d42d5e3f2a0249ce04e11debb94 Mon Sep 17 00:00:00 2001 From: BLUELOVETH Date: Thu, 27 Jul 2023 20:14:27 +0800 Subject: [PATCH] ... --- docs/quick-start/bind.md | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/docs/quick-start/bind.md b/docs/quick-start/bind.md index e51d7b01..10978b02 100644 --- a/docs/quick-start/bind.md +++ b/docs/quick-start/bind.md @@ -40,19 +40,6 @@ vm->bind(obj, }); ``` -### Bind a constructor - -The constructor of a class is a special function that returns an instance of the class. -It corresponds to the `__new__` magic method in python (not `__init__`). - -```cpp -vm->bind_constructor<3>(type, [](VM* vm, ArgsView args){ - float x = CAST_F(args[1]); - float y = CAST_F(args[2]); - return VAR(Vec2(x, y)); -}); -``` - ### Bind a magic method For some magic methods, we provide specialized binding function.