Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so dont bother with any of their useless mail servers here and just use oauth login instead. Thank the nice Russians for causing that. :)

Paste

Pasted as Nimrod by Dan ( 8 years ago )
type
    T1Impl = object of RootObj
        field1:int
        
    T1 = ref T1Impl
    
    T2Impl = object of T1
        field2:int
        
    T2 = ref T2Impl

var a:T2

a = new(T2)
echo repr(a)

 

Revise this Paste

Your Name: Code Language: