⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 errata.txt

📁 游戏编程精华02-含有几十个游戏编程例子
💻 TXT
字号:
Errata
------

In the gem text there are some wrong references to the RTTI usage.
My type information code simulates the behaviour of RTTI's typeid(), so to validate this action 
I have deleted all usage of RTTI from the Tweaker! 

Here are the pros and cons of keeping my type information: 

Pros

  * Takes less space for the type information (only for classes that uses it)
  * One can add specific information to the TypeID_c class, i.e. way to store/load the type, 
    pointer to GUI control, etc.
    (With typeid we have to create a special mapping between type_info (or any part of it) and our 
    additional information to do this.)

Cons
  * Have to use macros for each unique type, while RTTI provides the type information automatically

  



⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -