Re: Inheritance of constructors.

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



> Avoiding
making fields public helps too :)

Bare in mind that was just for sake of example.

I'm also not sure where threading
comes into it particularly...

It just comes in the sense that you wouldn't like your data collection being modified while reading. In case of "reference by value" that's not a problem cos it never gets updated anyway - just remains stuck with an old collection unless you do something on your own, lol.

But yes, your point that the field is a just reference rather than
something which automatically keeps track of a different variable is
correct. I can't remember when I've ever wanted the latter behaviour
though.

Imagine a class which handles rendering at 15 frames a second. Now, imagine that you have a collection of objects it renders to screen or wherever you fancy. Do you really desire to inform the class that some objects are added/removed from the data collection? I'd rather have a memory-wise reference that assures the class would always see the updated collection. What's the point in copying reference values of let's say 1000 objects 15 times a second (provided collection changes so dynamically)?

Cheers
.



Relevant Pages

  • Adding forms from another project
    ... Project1 has 1 Form that performs some data collection. ... Project2 connects to a MYSql database and updates data. ... Do I have to make some form of reference to the added form somewhere? ... SteveW ...
    (microsoft.public.pocketpc.developer)
  • Re: Moore on Skolems Paradox
    ... >> referents for the terms in the language. ... >language" is assigning a reference to all of the terms that we learn. ... mathematics and assume that what it means in mathematics is ... If you want to imagine a world ...
    (sci.logic)
  • Re: Weight loss.
    ... You're a regular Sherlock Homo. ... A Michael Richards reference seems to be more appropriate, ... I imagine grasping him firmly by the hips and bending him over a barbell on ... you gotta follow that dream wherever that dream may lead ...
    (misc.fitness.weights)
  • Re: Spoiler - Tuesday - Passports
    ... passport while he was on bail? ... I thought there was a reference to them having given it back but that seems even less likely. ... I can only imagine that they would only do this if they were very confident that they would pick him up at the airport, if he was silly enough to try to do a runner. ...
    (uk.media.radio.archers)
  • Re: Spoiler - Tuesday - Passports
    ... his passport while he was on bail? ... I thought there was a reference to them having given it back but that seems even less likely. ... I can only imagine that they would only do this if they were very confident that they would pick him up at the airport, if he was silly enough to try to do a runner. ... I think she will refuse to go, in the hope that this will make him change his mind or at least persuade him to come back soon and face the consequences. ...
    (uk.media.radio.archers)