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
Return to the
comp.compilers page.
Search the
comp.compilers archives again.