??? 01/01/11 19:18 Read: times |
#180384 - Pointers Responding to: ???'s previous message |
Richard Erlacher said:
[pointers] aren't less of a problem in Pascal. I think they are! eg, Pascal provides proper means for passing parameters by reference - so you don't have to manually mess about with pointers for that. Pascal also doesn't have the "duality" of arrays & pointers - so removes that common cause of confusion. Thus, in Pascal, you only use pointers when you really need to - not as a "by-product". I don't even know how they can be expressed in BASIC Again, you are falling into the trap of assuming that "BASIC" refers to some standard language - it doesn't! There are many things called "BASIC" (or having "BASIC" or some derivative in the name) that bear varying degrees of resemblance to the original "BASIC" language from Dartmouth College, New Hampshire. Possibly the furthest from the original is Microsoft's Visual Basic - which is a structured, Object-Oriented language! This appears to be BASCOM's support for "pointers": http://8051help.mcselec.com/index.html [pointers] exist as a concept no matter where you go and in what language you attempt to use them. No, they don't; eg, Java has no pointers. |