Re: [CS3304_1381] passing a pointer to a function

New Message Reply About this list Date view Thread view Subject view Author view

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;

Then pass

function ValueOf(root: nodePtr):real;

-David

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;


New Message Reply About this list Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b3 on Sun Feb 13 2000 - 11:23:04 EST