Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!oliveb!ames!haven!mimsy!jds From: jds@mimsy.UUCP (James da Silva) Newsgroups: comp.lang.pascal Subject: Re: Turbo and Standard Pascal Message-ID: <18501@mimsy.UUCP> Date: 12 Jul 89 01:52:17 GMT References: <20172@adm.BRL.MIL> <4822@freja.diku.dk> <4249@eos.UUCP> <2075@csuna.csun.edu> <19440@paris.ics.uci.edu> Reply-To: jds@mimsy.umd.edu (James da Silva) Organization: University of Maryland, Department of Computer Science Lines: 18 In article <19440@paris.ics.uci.edu> milne@ics.uci.edu (Alastair Milne) writes: > BTW, how is scoping defined for procedures passed by the method you > describe for Turbo 5.0? Alastair, The scoping is static as usual. Since procedure values cannot be returned, the implementation is straightforward. The procedure parameter consists of a code pointer AND an `environment pointer'. The environment pointer points to the frame of the static parent of the procedure parameter. If you could return local procedures, things would get much more complicated. Jaime ........................................................................... : domain: jds@mimsy.umd.edu James da Silva : path: uunet!mimsy!jds