Ok  - to illustrate how useful this would be - here is how it could be used
   with the new syntax:

    Dim myRef As myClass

   if myRef FROM getA() <> nil then
    .. do something with myRef
   elseif myRef FROM getB() <> nil then
    .. do something with myRef
   elseif myRef FROM getC() <> nil then
    .. do something with myRef
   end if
        ...

You can just define:

sub FROM(byref a as Object, b as Object) returns Object
  a = b
  return b
end

then:

   if FROM(myRef, getA()) <> nil then
    .. do something with myRef
   elseif FROM(myRef, getB()) <> nil then
    .. do something with myRef
        ...

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