Re: Collections of structured-data objects: what approach?



Graham Wideman wrote:
Robert:

Thanks, and...

You're welcome!

Right. You got it. That's what OO is about.

Well, I already had the OO part, just needed the ruby version of it :-) plus connecting the dots might help others stumbling along this way, and you never know it might turn out that your "consistency" comment was referring to something else I didn't see.

I probably should have put "encapsulation" somewhere in that posting. :-) Anyway, I'm glad I could help sort these things out.

Anyhow, this discussion has been most helpful to alert me to all the capabilities that Array has, and calibrating my sense that a little bit of assembly required to implement collections with various features, they're not just in some library that "of course" everyone knows about and uses :-)

Yeah, the reason is probably that Array and Hash are so powerful on the one hand and that requirements are so different on the other hand. Java follows a tad different approach by providing collections for usual situations.

Kind regards

robert
.



Relevant Pages

  • Re: When a default constructor necessary?
    ... The very reason I snipped your ... I wasn't referring to the FAQ as incorrect in this regard. ... When you want to create an array of objects of your class. ...
    (comp.lang.cpp)
  • Re: scan dpi for photos
    ... A digital photograph is essentially an array, ... Each element in the array is called a pixel, ... inkjet, DM, or laser printers all the dots are the same size. ... does for the complex "dithering" you speak. ...
    (rec.photo.digital)
  • Re: <ctype.h> toLower()
    ... >> industry when you don't even know what an array is. ... No I am referring to the fact that you thought that if you allocated memory ... > It is not uncommon for people to resort to attempts at ad hominem attacks ... of a bunch of little mosquitos trying to attack me from a bunch of different ...
    (alt.comp.lang.learn.c-cpp)
  • Re: Imaginary Polynomial Time Algorithm for Subset sum Problem
    ... While on any realistic computer/model, copying an array, would take time proportional to its size. ... copying an array does not take up time which is proportional to the size of the array on a parallel computer. ... This is not the case of the OP's stamping process which copy as many dots as wanted in time 1 without explicitely creating all these processors. ...
    (comp.theory)
  • Re: Gaussian statics law
    ... "Terman was referring to close spaced of the parasitic form, ... and he also mentions the Yagi array. ... he wrote the comments on page 185 in "Antennas". ... If you are implying that Richard is incorrect in his statements and that Art has even a tiny clue about reality, ...
    (rec.radio.amateur.antenna)

Loading