Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.

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: