[comp.os.cpm] Z80 Pascal Compilers and recursion.

PHR00JG@TECHNION.BITNET ("Jacques J. Goldberg") (07/06/88)

Some confusing, misleading, notes have been posted about the simple recursive
example which I quoted only to show that Turbo-Pascal and Polydata Pascal were
behaving in the SAME incorrect way.

1. Pascal IS recursive and the example works perfectly, I repeat, with UNIX
on a VAX, with VAX-VMS, with the IBM and the Waterloo compiler on IBM-VM
systems, with Microsoft Pascal under MS-DOS, and with JRT Pascal on my Z80
system. It does NOT work correctly with Turbo-Pascal and Polydata Pascal under
MS-DOS but this has nothing to do with the language implementation, only with
its I/O interface when the unit is the keyboard.

2. Turbo Pascal and Polydata Pascal DO correctly implement recursion, with the
DEFAULT {A-} compiler option . The alternate option {A+}, under CP/M-80 ONLY,
contrarily to what Erik Seielstad writes, makes the code NOT recursive. Again,
the DEFAULT obeys Pascal RULES, while EXPLICITLY requesting {A+} ( A for
ABSOLUTE code) will assume you don't want recursion and thus save speed and
memory (so says the guide, at least...)

3. Then I will repeat my request: WHO CAN GIVE ME AN ADDRESS WHERE TO BUY
PREFERABLY Z80_Polydata_Pascal ,OR STILL ACCEPTABLE Z80_Turbo_Pascal?

                                            Jacques J. Goldberg
                                            phr00jg@technion.bitnet
                                               ^^
                                               ||
                                               ---zeroes

binder@DECVAX.DEC.COM (A complicated and secret quotidian existence) (07/06/88)

In Turbo V3.0, {$A+} is the default - not {$A-} as Jacques Goldberg
says.  This was done to provide the fastest possible compilation and
execution in the general case.  Be that as it may...

Jacques, you can buy Z80 Turbo in any one of zillions of disk formats
directly from Borland:

	Borland International
	4585 Scotts Valley Drive
	Scotts Valley, CA  95066
	USA

Specify CP/M-80 and your disk format.  The price for V3.0 is $69.95. 
Do not buy V4.0, which is for MS-DOS only, specifically PCs and PC
clones.

Cheers,
Dick Binder	(The Stainless Steel Rat)

DEC Easynet:	FLUME::"binder@caliph.dec.com"
uucp:		{ Most major hubs }!decwrl!caliph.dec.com!binder
Internet:	binder%caliph.dec.com@decwrl.dec.com