-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOVERVIEW
More file actions
13 lines (11 loc) · 800 Bytes
/
OVERVIEW
File metadata and controls
13 lines (11 loc) · 800 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
This is a short overview of some coding conventions in the Phoenix source.
String objects use a unary ~ (tilde) operator as a shorthand for casting the
string to a (char *). This syntax is used extensively throughout the source.
The Object base class is used for objects which are to be reference-counted.
Only smart pointers in the Pointer class are counted as official references
for this counting, but some sections of code use real pointers temporarily.
Real pointers will not keep the object from being destroyed when the last
smart pointer to the object is destroyed or stops referring to that object,
which is why real pointers to reference-counted Objects are only temporary.
(Some object classes are NOT derived from Object, when the reference-counting
semantics are deemed unnecessary.)