On Apr 6, 2006, at 1:49 pm, Joseph J. Strout wrote:

At 10:46 AM -0400 4/6/06, GregO wrote:

My question is: I seem to be able to do this in VB, wouldn't it make sense to be able to do it in RB as well?

Goodness, no! VB allows all sorts of looseness which is disallowed in RB. This is a feature; it prevents whole classes of potential mistakes.

Your code shouldn't be assigning 1 to myEnum; it should be assigning some enum value.


The reason I'm asking this question is that I have a DLL that includes a bunch of supplied code in VB and I've been working on documenting the changes that need to be made. The problem I'm seeing is this VB Looseness / RB Tightness because the DLL can only return integers.... but I'd still like to take advantage of the If anyone has a better idea of how to handle this, I'd LOVE to know!

GregO
_______________________________________________
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>

Reply via email to