David Torbert (dtorbert@VT.EDU)
Sun, 13 Feb 2000 11:23:09 -0500
Message-ID: <38A6DA6D.ED6D8C3B@vt.edu> Date: Sun, 13 Feb 2000 11:23:09 -0500 From: David Torbert <dtorbert@VT.EDU> Subject: Re: [CS3304_1381] passing a pointer to a function
Pascal despises anonymous types. Up in your type section, declare
nodePtr = ^node;
function ValueOf(root: nodePtr):real;
Gregory K Taylor wrote:
> How do I pass a pointer to a function?
> I've tried the following:
> FUNCTION ValueOf(root: ^node):REAL;
> but the compiler won't have it.
> If it can't be done....
> is there a way to reference an existing variable with a pointer?
> I'm looking for the equivalent of:
> int a, *b;
> a = 3;
> b = a;
This archive was generated by hypermail 2.0b3 on Sun Feb 13 2000 - 11:23:04 EST