Path: ...!eternal-september.org!feeder3.eternal-september.org!news.quux.org!news.nk.ca!rocksolid2!i2pn2.org!.POSTED!not-for-mail From: John Reagan Newsgroups: comp.os.vms Subject: Re: Fun trick Date: Mon, 13 Jan 2025 21:08:11 -0500 Organization: i2pn2 (i2pn.org) Message-ID: References: <3e4166d654be19fea5da4abf1eca5fd593cc0ac2@i2pn2.org> <6c113c2743a5d770b4641d92d1f40956deda07c9@i2pn2.org> <677ef06b$0$707$14726298@news.sunsite.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Tue, 14 Jan 2025 02:08:11 -0000 (UTC) Injection-Info: i2pn2.org; logging-data="3496715"; mail-complaints-to="usenet@i2pn2.org"; posting-account="85Cwws6+ypgQVu4foqgE6eSuYb0IIJZq6Fz6j0v4a/s"; User-Agent: Mozilla Thunderbird Content-Language: en-US X-Spam-Checker-Version: SpamAssassin 4.0.0 In-Reply-To: <677ef06b$0$707$14726298@news.sunsite.dk> Bytes: 1799 Lines: 16 On 1/8/2025 4:38 PM, Arne Vajhøj wrote: > On 1/8/2025 3:42 PM, John Reagan wrote: >> And the compiler also supports the Extended Pascal TO BEGIN DO and TO >> END DO statements.  TO BEGIN DO is just the same as [INITIALIZE] but >> allows any statement.  TO END DO is an exit handler (registered with >> an initialization routine). > > The compiler tell me that those two are only valid in modules > not in programs. > > They are probably most useful for modules, but why not allow > them for programs? > > Arne > Good question. Extended Pascal says only MODULEs so we just didn't think about allowing them in PROGRAMs even though we allow [INITIALIZE].