Re: What's OOP?




<randyhyde@xxxxxxxxxxxxx> wrote:

| > most readers here know me as the very last HEX-coder anyway,
| > so don't wonder my question: what's all about this OOP-stuff?

| OOP, in it's rawest form, works under the assumption that each packet
| of data (i.e., an "object") carries around not only the data, but the
| list of operations (i.e., procedures/functions) that are possible on
| that data.

| > As far I understood it's nothing else than data/code-grouping,
| > and where is the difference to my way of seeing this?

| In a very low-level sense, you are correct. Objects have a lot to do
| with the data and code grouping. In particular, each data object
| "carries" around the code that operates on it. Okay, not really, it
| does, however, carry around *pointers* to the code that can operate on
| it.

[..]
| > So do I use OOP without even recognised it ? :)

| No. Now if your data values carried around pointers to the routines
| that operate on those data values, you could *start* to make a claim
| that you're doing OOP.

[..]

Thanks, I actually use things like this in my 'application-string-
interpreter', where user defined variables can have any format, including:
colour, location, input limit ranges, output form, array index etc..,
as tokens in any order. But this is a BASIC-like HLL-interpreter.

For pure ASM (talk to CPU) I know only a few possible datatypes,
exactly the types the CPU knows, and here I can't see any sense in OOP.

__
wolfgang



.



Relevant Pages

  • Re: Data abstraction in C
    ... > black box of a compiler to keep you from doing what you want. ... magic and C++ and OOP aided languages aren't the only to benefit from the ... if the programmer isn't knowledgeable ... Using pointers for the code, not just the data, (I mean the function ...
    (comp.lang.c)
  • Re: Can a low-level programmer learn OOP?
    ... When pointers were first explined to me, ... When I read what OOP is, ... why rearrange my thinking to a new terminology? ... single-board computer with a serial and a parallel port. ...
    (comp.lang.python)
  • Re: A (mild-mannered) defense of RosAsm
    ... >method table pointers at run-time. ... Namemangling is simply a convenient for the HLL programmer to allow overriding ... >the benefits of OOP when you do this. ... C++ code where the coder hadn't had a clue about objects, virtual functions ...
    (alt.lang.asm)
  • Re: Whats all this fuss about Object-Oriented languages, please?
    ... Programmer Dude wrote: ... to have less dependancy on pointers as a means of referring to ... There are a lot of OOP memos that Stroustrup didn't get. ... in 99% of modern OOP development. ...
    (comp.programming)