Hi Mars,
Ah. I'm surprised you ever got that to work. Variants can contain
objects, so they aren't allowed on context methods. I'm surprised that
RbScript failed to catch these in the past. Which version did you try
this in?
It worked in RB5.5.4 on OSX, RB5.5.5 on OSX and RB2005 on WindowsXP X64.
The other issue that cost me a bit more aggravation (in the end, I could
work around it, so for me this is no immediate show stopper either): It
appears you can no longer pass an object through the context in either
way.
You were never supposed to be able to do that in the first place;
I know. I liked it nonetheless. And in spite of all the discussions that
took place on the subject in the past I still think RBScript should allow
it. I'm not going to start or join that discussion again. It's unlikely I
would make you change your mind. I gave it quite a bit of thought, but can't
find a valid reason for denying this feature in RBScript. Hence, it must be
too difficult for RS to implement properly, so they rather not do it at all.
That would make sense: rather not implement something at all than to do so
poorly. Oh wait... nah, let's not get started heheheh
that's the whole point. The compiler disallows it for a reason; even if
you can find a loophole, you shouldn't use it unless you like solving
obscure crashes that only occur under rare conditions having no apparent
connection to the source of the bug.
Well, it didn't cause crashes; and I have used it quite a bit. I was kinda
waiting for RS to either formally support it or to close the loophole. I
knew (from past discussions) the former wasn't going to happen, but I was
disappointed nonetheless, to see that the latter had happened.
Ronald Vogelaar
--
http://www.rovosoft.com
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>