Posted: Sun Oct 09, 2011 5:40 pm
I just want him to admit that it's not a bug, and he just hasn't understood any advances in computer language development in the last 30 years.
Strings are objects in modern computer languages, dude.Tdarcos wrote:Okay, fine. Show me how you change the value of the string object to something else. The one characteristic that makes something an object (as opposed to a constant) is that the object can be changed.
Oracle can say anything they want. Does not mean they're correct. As Abraham Lincoln supposedly said, "If we take a horse and call its tail a leg, it does not mean the horse has 5 legs. Calling a tail a leg does not make it one."Ice Cream Jonsey wrote:Strings are objects in modern computer languages, dude.Tdarcos wrote:Okay, fine. Show me how you change the value of the string object to something else. The one characteristic that makes something an object (as opposed to a constant) is that the object can be changed.
http://download.oracle.com/javase/1.4.2 ... tring.html
Says right there that the String class extends Object.
Extending object means it's an object. Which I know you know. But that's where it's headed.Tdarcos wrote:Oracle can say anything they want. Does not mean they're correct. As Abraham Lincoln supposedly said, "If we take a horse and call its tail a leg, it does not mean the horse has 5 legs. Calling a tail a leg does not make it one."
Again, they can call it an object or claim it's descended from one, but that does not make it so. The guy who designed Brainfuck can call it a programming language or claim it is one, but it's so ridiculously convoluted (hence the name) that no serious person would do so. (In fact, the Wikipedia article I pointed to above says it's "not suitable for practical use.")Ice Cream Jonsey wrote:Extending object means it's an object. Which I know you know. But that's where it's headed.Tdarcos wrote:Oracle can say anything they want. Does not mean they're correct. As Abraham Lincoln supposedly said, "If we take a horse and call its tail a leg, it does not mean the horse has 5 legs. Calling a tail a leg does not make it one."
How can a quoted string be manipulated? As far as I know, a quoted string is immutable. You can modify a variable containing a string, but a string constant itself cannot be modified because there is no capability to do so. Where are the attributes? What behaviors does it have?Wikipedia wrote:In computer science, an object is any entity that can be manipulated by the commands of a programming language, such as a value, variable, function, or data structure. (With the later introduction of object-oriented programming the same word, "object", refers to a particular instance of a class)[.] In the domain of object-oriented programming an object is usually taken to mean an ephemeral compilation of attributes (object elements) and behaviors (methods or subroutines) encapsulating an entity
Where is the "idenity", "state" or "behavior" of a string constant that makes it an object? It has none of these.Three properties characterize objects:
Identity: the property of an object that distinguishes it from other objects
State: describes the data stored in the object
Behavior: describes the methods in the object's interface by which the object can be used
Code: Select all
L 12,=F'5'
MVC XRAY,="YES"
...
MVC ZULU,="YES"