[comp.lang.c++] the behaviour of form

peter@mit-amt.MEDIA.MIT.EDU (Peter Schroeder) (08/16/89)

I am running cfront 1.2 on an HP9000/835 and can't get the expected
usage out of form() as in, say

	double a = 1.23456;
	cout << form( "%.10e", a );

as a result it prints:
	
	0.0000000000e+00

I looked at the library source and sure enough it is a rather hookey
maneuver that it uses to get the unknown arguments of the stack to send
them to sprintf(). I can see the intent, as far as trying to move bytes
of the stack onto the stack for the sprintf() function call, but apparently
that does not do the expected thing on the HP9000/835 machines.

Has anybody out there rewritten form() to work on this type of machine as
expected?

Thanks

Peter

peter@media-lab.media.mit.edu