in reply to Algorithms, Datastructures and syntax

A for loop in ASM usually sets a counter in the beginning of the block and at the end of the block it checks counter's value and jumps to the start of the block if the for loop isn't finished yet. Where does your friend sees a data structure here? By declaring a data structure we declare a variable or a set of memory cells. There is no program execution involved in it.

In general you can say that in a programming language we have data and control structures. The for loop clearly belongs to the control structures, since it changes program execution path (a jump in ASM).

Such 'debates' are quite dangerous, once I was arguing with my co-worker about DOS. I was claiming that it's an operating system, no matter how simple. His point was that it's not an operating system. He said we should call BIOS an operating system then. And so we continued to argue on such a pointless thing till we started to treat each other like an enemy. Not so good. Might have been bad chemistry between us ;-)

  • Comment on Re: Algorithms, Datastructures and syntax

Replies are listed 'Best First'.
Re2: Algorithms, Datastructures and syntax
by dragonchild (Archbishop) on Apr 04, 2003 at 15:42 UTC
    Though, with a handle like Heidegger, I can see why you might be predisposed to arguments that can (potentially) be viewed as pointless. :-)

    ------
    We are the carpenters and bricklayers of the Information Age.

    Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.

    Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.