Path: csiph.com!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: Distributing C as headers. Date: Sun, 27 Jan 2019 16:33:28 -0800 Organization: None to speak of Lines: 19 Message-ID: References: <3719d4fa-cf75-4a85-9255-b3f961a649c1@googlegroups.com> <5c4b5064$0$21586$426a74cc@news.free.fr> <1bh8dw2l5r.fsf@pfeifferfamily.net> <5c4c1691$0$21610$426a74cc@news.free.fr> <1bwomr17cp.fsf@pfeifferfamily.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: reader02.eternal-september.org; posting-host="6e9d60f1a86f6adea14a7c4a73c06923"; logging-data="608"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18FZQjsEJO2tQ6NRn0I3msM" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:gQgRTcYxVslE00sJtVNXYAnOfsM= sha1:R836mk+z8qUh3cAo0UMBwD9upWo= Xref: csiph.com comp.lang.c:140338 "Pascal J. Bourguignon" writes: > James Kuyper writes: [...] >> Assuming that it is possible to write >> Pascal code that could crash, could you please provide an example? > > AFAICR, it's not possible to write a pascal program that could crash. > A dereference of a null pointer, or an out of bounds indexing would be > detected and the program would abort cleanly (or if error handling > extensions are used, could be handled at run-time). I haven't used Pascal in a long time, and I'm not as familiar with the details of the standard as I am with C. Does an attempt to dereference an uninitialized pointer have defined behavior in Pascal? -- Keith Thompson (The_Other_Keith) kst-u@mib.org Will write code for food. void Void(void) { Void(); } /* The recursive call of the void */