On 11/17/15 3:25 PM, user123ABCabc wrote:
On Tuesday, 17 November 2015 at 19:44:36 UTC, Ali Çehreli wrote:
    if (typeid(a) == typeid(b)) return a.opEquals(b);

Wow this is terrible to compare two objects in D. The line I quoted
means that two TypeInfoClass are likely to be allocated, right ?

No, those are immutable stored in the data segment. Fetching them costs only doing the fetch of the class info pointer.

-Steve

Reply via email to