Path: utzoo!attcan!uunet!spool.mu.edu!sdd.hp.com!wuarchive!emory!gatech!purdue!haven!adm!news From: VMAN%PACEVM.BITNET@uga.cc.uga.edu ( cliff) Newsgroups: comp.lang.pascal Subject: procedures as parameters to procedures Message-ID: <25782@adm.brl.mil> Date: 31 Jan 91 18:46:34 GMT Sender: news@adm.brl.mil Lines: 26 hi, we run vs pascal 2.1 on vm/sp 6. is it possible to pass as a procedure parameter a procedure name with a parameter list? for example, program main (input,output); var word: packed array(1..5) of char; procedure abc(procedure xyx(var string: packed array(1..5) of char);i:integer); . . procedure blah(var string: packed array(1..5) of char); . . begin (* main program *) . . abc(blah(word),3) end. i can pass procedure names without parameter lists as parameters to a procedure, but i get errors using the above code. i don't know if this is a restriction on our particular product or not. the pascal report (wirth & jensen) seems to indicate you can do this. does anyone have an example of code where this has been successfully done? any help is appreciated.