|
|
platform info: WinNT4, PII 233, 128MB, POV3.5b2
looking at behavior of arrays on example of storing objects
#local A=sphere{10,2}
#local B=sphere{3,7}
#local Array=array[2]{A,B}
#local c=sphere{Array[0]}
above example works fine
than I expect that similiar syntax for functions works such way:
#local A=function(h){h^h}
#local B=function(h){A(h)-h}
#local Array=array[2]{A,B}
#local c=Array[0](1)
but only below version is parsed ok
#local A=function(h){h^h}
#local B=function(h){A(h)-h}
#local Array=array[2]{function{A(x)},function{B(x)}}
#local c=Array[0](1,0,0)
I think it's not very logical, but perhaps there are some limitations
inside source of current engine :-(
ABX
Post a reply to this message
|
|