Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cwjcc!gatech!mcnc!rti!bnrunix!rick From: rick@bnrunix.UUCP (Richard Johns X7191) Newsgroups: comp.sys.hp Subject: Disturbing Pascal Behavior Message-ID: <231@bnrunix.UUCP> Date: 21 Jul 89 16:39:04 GMT Organization: BNR Inc., RTP, NC Lines: 37 I really hope that someone can tell me it ain't so: under HP/UX6.2, using the "Pascal [Rev 10.1.1.3 88/04/22]" compiler I try to compile: $STANDARD_LEVEL 'HP_MODCAL'$ $ALLOW_PACKED ON$ MODULE test; EXPORT function poops(s : string[80]) : string[80]; . . . and get: 7: 7:D 1 function poops(s : string[80]) : string[80]; ^^ ^^ >>>>>> Error at f.p/7 >>>>>> Type identifier required; >>>>>> Error in parameter list; >>>>>> Type identifier required; >>>>>> Expected a semicolon ";"; >>>>>> Symbol is not valid in this context; What's the story? I can declare variables of type string, but can't put them into a function declaration with or without the "[80]", using VAR, or using $ALLOW_PACKED$. I have seen anything in the manual that says it shouldn't be possible. Thanks in advance. Rick