Newsgroups: comp.parallel.pvm
From: Mark Frazer <mjfrazer@dictator.uwaterloo.ca>
Subject: pvm3.h, why no use of const???
Organization: University of Waterloo
Date: Fri, 15 Sep 1995 13:40:49 GMT
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Message-ID: <95Sep15.094100edt.364896@dictator.uwaterloo.ca>

In pvm3.h I find the following.

int pvm_pkint           __ProtoGlarp__(( int *, int, int ));
int pvm_pklong          __ProtoGlarp__(( long *, int, int ));
int pvm_pkshort         __ProtoGlarp__(( short *, int, int ));
etc...

I'm wondering why they aren't typed as follows:
int pvm_pkint           __ProtoGlarp__(( int const*, int, int ));
int pvm_pklong          __ProtoGlarp__(( long const*, int, int ));
int pvm_pkshort         __ProtoGlarp__(( short const*, int, int ));
etc...

since the packing routines should not be touching any of the data they
are packing.

Thanks,
mark
--
Mark Frazer    Electrical and Computer Engineering    University of Waterloo
MJFrazer@dictator.UWaterloo.Ca       http://WWW.PADS.UWaterloo.Ca/~mjfrazer/

