Displaying 1 result from an estimated 1 matches for "getstack".
2012 Feb 02
1
possibly Error in R version 2.12.1 (2010-12-16)
...9;, '\\\\"', s), '"', sep, sep='')
}
write( sChain, fHandle, append=TRUE)
},
stackIt1 = function( ...)
{
testClass( stackData= c( stackData, ...))
},
stackIt2 = function( ...)
{
tmp= c( stackData, ...)
testClass( stackData= tmp)
},
getStack = function()
{
stackData
},
NULL
)
}
to1= testClass()
for( i in 4:2)
{
to1= to1$stackIt1( i)
}
print( all( rep( 2, 3) == to1$getStack())) # error!
to2= testClass()
for( i in 4:2)
{
to2= to2$stackIt2( i)
}
print( all( 4:2 == to2$getStack())) # correct!
# what ist the difference b...