/runtime/typeinfo/ti_function.d
http://github.com/wilkie/djehuty · D · 32 lines · 16 code · 9 blank · 7 comment · 1 complexity · 190e45bdf55311c284744bde5d96f9e2 MD5 · raw file
- /*
- * ti_function.d
- *
- * This module implements the TypeInfo for function types.
- *
- */
- module runtime.typeinfo.ti_function;
- class TypeInfo_Function : TypeInfo {
- char[] toString() {
- return next.toString() ~ "()";
- }
- int opEquals(Object o) {
- TypeInfo_Function c;
- return this is o ||
- ((c = cast(TypeInfo_Function)o) !is null &&
- this.next == c.next);
- }
- // BUG: need to add the rest of the functions
- size_t tsize() {
- return 0; // no size for functions
- }
- TypeInfo next;
- }