One workaround for this problem is to trick RubyToC into correctly
declaring your variable by assigning it to something that is obviously
an integer on the line above:
light = 0
light = analogRead(ldr)
I think that should do the trick. If not (or if this is too gross for
us, which it is to me), we'll have to look into giving declaration
instructions to RubyToC. Unfortunately, RubyToC is pretty advanced
stuff and is only mildly penetrable to me. If you wanna dig in there,
someone having a greater understanding of RubyToC would be an
invaluable resource to RAD's further development.
-- Greg
In the meantime, if you wrap that up in a patch, I can apply it to the
current svn and work it into the next release.
I'm planning to move the RAD source into Git (and onto github.com)
pretty soon, which will make creating and applying contributions like
this much easier.
Thanks David!
-- Greg