Displaying 2 results from an estimated 2 matches for "realansw".
Did you mean:
realanswer
2009 Mar 18
2
incoherent conversions from/to raw
...1
work just fine, in both cases there is an attempt to coerce the assigned
value to the vector type, and not to the higher type (which would
presumably qbe double, as in ?c), as in the previous example.
interestingly,
c(1, as.raw(1))
# error: type 'raw' is unimplemented in 'RealAnswer'
(note the 'real', not 'double'), whereas
1 == as.raw(1)
# TRUE
works just fine. furthermore,
c('1', as.raw(1))
# "1" "01"
whereas
x = '1'
x[2] = as.raw(1)
# error: incompatible types (from raw to character...
2009 Mar 18
2
incoherent conversions from/to raw
...1
work just fine, in both cases there is an attempt to coerce the assigned
value to the vector type, and not to the higher type (which would
presumably qbe double, as in ?c), as in the previous example.
interestingly,
c(1, as.raw(1))
# error: type 'raw' is unimplemented in 'RealAnswer'
(note the 'real', not 'double'), whereas
1 == as.raw(1)
# TRUE
works just fine. furthermore,
c('1', as.raw(1))
# "1" "01"
whereas
x = '1'
x[2] = as.raw(1)
# error: incompatible types (from raw to character...