Doc Comments / Phobos /
Object
object
|
Comments
Add your comments here...
This part is confusing:
bool opEquals(Object o);
Returns !=0 if this object does have the same contents as obj.Why not specify a bool return value instead of !=0 (Returns true if equals).
Missing Items
I don't see any reason why these alias shouldn't be listed as part of the documentation:
- alias string;
- alias wstring;
- alias dstring;
Object.print
The Object.print method is absent from the documentation. I think it'd be best to match the code with docs by removing it from object.d. (Since it's not even documented, I'll bet no one has ever used this "feature".)
printf
The documention doesn't mention extern(C) int printf(char *, ...), it should probably be removed from object.d. (Since it's not documented, this "feature" might have not been used by anyone.)
Typeinfo and polymorphism
Sometimes (like in a variadic function) you have a TypeInfo?, and want to determine if that TypeInfo? represents a particular class or any of it's subclasses. This tip comes from Jarret Billingsley:
|
ClassInfo
Please add some more information about ClassInfo. Something like:
ClassInfo classinfo;
.classinfo for this interface (not for containing class).classinfo.name allows you to get the name of a class as a string. For example:
|
Links