2009-10-18 91 views

回答

1

最好的方法可能是使用结构/与 - 它创建一个基于现有的对象。

为了使基于例如对象加上一个额外的字段上的对象:

example2: construct/with [extra-field: 999] example 

或使一个只有同场

example2: construct/with [] example 
+0

大秘诀我不知道! – 2009-10-19 19:43:52

1

你也可以利用雷博尔年代对象原型:

example2: make example [] 

或wi个附加字段

example3: make example [  
    var4: now/date 
    set-date: does [var4: now/date] 
] 

或更换领域

example4: make example [ 
    calculate: func [value] [ 
    var1: value 
    var2: value + 20 
    ] 
]