Re: Confessions of an "OO Foreigner"

From: Thomas A. Li (tli_at_corporola.com)
Date: 12/31/03


Date: Wed, 31 Dec 2003 15:46:05 GMT

Then an object has tons of INVOKEs as we like with different parameters;
Or one INVOKE for everything without type checking.

"Peter E.C. Dashwood" <dashwood@enternet.co.nz> wrote in message
news:3ff1f5d4_3@news.athenanews.com...
>
> "Thomas A. Li" <tli@corporola.com> wrote in message
> news:MogIb.218512$ea%.76369@news01.bloor.is.net.cable.rogers.com...
> > I would prefer using
> >
> >
>
specific-object-reference.specific-method-name(various-parameter-by-CONTENT/
> > REFERENCE/VALUE)
> >
> > where dot are used as in Java and C++. There is no need to use verb
INVOKE
> > because it is self-evident from use of parenthesis and it is faster to
> type
> > in code.
> >
> > If INVOKE is used, which object does it belong to?
> >
>
> It "belongs" to the object referenced by the Object Reference quoted in
the
> INVOKE.
>
> e.g. invoke objMyInstance "DoEverything" ....
>
> ...where objMyInstance is an Object Reference (previously instantiated)
for
> a given object. You could have any number of these and reference the
Methods
> of the object separately via different Object References...or not.
>
> Pete.
>
>
>



Relevant Pages

  • Re: CALL using OMITTED
    ... look for ways that Cobol can help with this. ... invoke MyCollection "new" returning CollectionObject ... I've never done it so I don't know the full implications - hopefully it creates a unique reference in the first Collection without impacting the second. ... Procedure Div using.... ...
    (comp.lang.cobol)
  • Re: new block notation (was: Re: ruby-dev summary 26468-26661)
    ... It is possible to invoke all three in an arbitrary scope (where 'self' and instance variables refer to a specific, runtime-chosen instance of any class) by passing them as a block to a special ... It is possible to get a reference to a method and assign it to a variable. ... It is possible to invoke a method reference in the scope of the instance to which it is tied without supplying the instance as a receiver. ... Lambdas are not associated with any specific instance. ...
    (comp.lang.ruby)
  • Re: Prematurely garbage collection
    ... In the example below, when Invoke is being executed, the reference of the instance is available with app root - so the object is not collected until there are no more pending references. ... Executing the example given by Jon below on my machine gave the following output: ... static void Main ...
    (microsoft.public.dotnet.framework.clr)
  • Re: Want form to show changing data. But it could be closed, or closing, during update.
    ... Well, as I mentioned, subscribing to an event is a very common way to implicitly allow some component publishing that event to reference the subscriber. ... but BEFORE the reference is used to invoke. ... I think there are better ways around the issue, but at the very least, you could use some sort of synchronization object that is acquired by threads wanting to Invokeas well as the form's thread when it wants to close itself. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Load an object reference onto the stack ???
    ... The IL I generated calls a passed-in delegate. ... have a method called "Invoke". ... Load the object reference onto the stack. ...
    (microsoft.public.dotnet.framework)