pull/2/head
jaysunxiao 2022-01-03 16:59:00 +08:00
parent a6320f1d6a
commit c84e2fb290
3 changed files with 5 additions and 4 deletions

View File

@ -12,9 +12,9 @@
![Image text](image/gc2.png)
![Image text](image/gc3.png)
- 引用计数既保留了性能,也保证了更加高效的性能
![Image text](image/太极.png)
# 3. 引用计数
- 可以使用unreference去释放引用计数的对象
- 引用计数既保留了性能,也保证了更加高效的性能
![Image text](image/太极.png)

View File

@ -62,6 +62,7 @@ func typeInfo():
print(StringUtils.format(template, [TYPE_DICTIONARY, typeof(dict), dict]))
print(StringUtils.format(template, [TYPE_DICTIONARY, typeof(FOOD), FOOD]))
print(StringUtils.format(template, [TYPE_DICTIONARY, typeof(FOOD.GOOD), FOOD.GOOD]))
# 在java中类似于this
print(self is Node)
print(a is Dog) # 类似于instanceof

View File

@ -27,7 +27,7 @@ func _ready():
var myClass = MyClass.new()
print(myClass.to_string())
print("类型信息--------------------------------")
print("数据类型信息--------------------------------")
myClass.typeInfo()
print("基础语法if else--------------------------------")