2 ms·
Hey, Someone took it seriously! I would assume that strings and "ordinary" O.D. would differ in their object type: each would inherit from an abstract O.D. and
by joe_the_user 18y ago
Hey, Someone took it seriously!
I would assume that strings and "ordinary" O.D. would differ in their object type: each would inherit from an abstract O.D. and each would have a different print/display function (you could have a "hidden" variable specifying this function if you wished to keep in all concrete).
If I do y[1] = 'a' and y[3] = 'b', and then y << 'c', what is the value of y?
probably y = { 1=>'a', 3=>'b', 4=>'c'}, though like any good OO/metaprogramming language, "<<" would be an overidable function.
"Do the above questions really matter?"
I am arguing for the next language and by that token, I haven't answered all the questions this raises. I think old languages like lisp and new languages like Ruby prove that new languages can unleash new possibilities, even more than fifty years after the original computer languages were created.
Thanks for your detailed reply, seriously...