Re: New Book: The School of Niklaus Wirth

vbdis@aol.com (VBDis)
14 Nov 2000 13:10:40 -0500

          From comp.compilers

Related articles
[4 earlier articles]
Re: New Book: The School of Niklaus Wirth arargh@enteract.com (2000-11-07)
Re: New Book: The School of Niklaus Wirth gkt37@dial.pipex.com (jt) (2000-11-07)
Re: New Book: The School of Niklaus Wirth vbdis@aol.com (2000-11-09)
Re: New Book: The School of Niklaus Wirth djg@argus.vki.bke.hu (Gabor DEAK JAHN) (2000-11-11)
Re: New Book: The School of Niklaus Wirth joachim_d@gmx.de (Joachim Durchholz) (2000-11-11)
Re: New Book: The School of Niklaus Wirth guerby@acm.org (Laurent Guerby) (2000-11-14)
Re: New Book: The School of Niklaus Wirth vbdis@aol.com (2000-11-14)
Re: New Book: The School of Niklaus Wirth genew@shuswap.net (2000-11-14)
Re: New Book: The School of Niklaus Wirth gdemont@my-deja.com (2000-11-16)
Re: New Book: The School of Niklaus Wirth jerrold.leichter@smarts.com (Jerry Leichter) (2000-11-17)
Re: New Book: The School of Niklaus Wirth fjh@cs.mu.OZ.AU (2000-11-19)
Re: New Book: The School of Niklaus Wirth vbdis@aol.com (2000-11-19)
Re: New Book: The School of Niklaus Wirth jerrold.leichter@smarts.com (Jerry Leichter) (2000-11-21)
[2 later articles]
| List of all articles for this month |

From: vbdis@aol.com (VBDis)
Newsgroups: comp.compilers
Date: 14 Nov 2000 13:10:40 -0500
Organization: AOL Bertelsmann Online GmbH & Co. KG http://www.germany.aol.com
References: 00-11-087
Keywords: OOP, books
Posted-Date: 14 Nov 2000 13:10:40 EST

Im Artikel 00-11-087, "Joachim Durchholz" <joachim_d@gmx.de>
schreibt:


>E.g. a call like 'foo.bar(goo)' will select the function using the
>run-time type of the value in 'foo' and the compile-time type of 'goo' -
>and it's easy to mix these up when programming in the trenches.


I just wondered about runtime type checks on procedure arguments. What
you describe here are virtual methods, also available in OPL.


The possibility of confusion is correct, I confused both virtual and
overloaded myself, after I hadn't used C++ for some years.


>>Standard Pascal does indeed have dynamic memory allocation. The routines are
called 'new' and 'dispose'.<<


Thanks, you're right. I had misplaced my Pascal book :-(


But these procedures only allow to allocate instances of fixed data
types, not of array-like data structures of an arbitrary size. Such
dynamic memory allocation is incompatible with standard Pascal, as
well as is pointer arithmetic.


DoDi


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.