From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id WAA19457; Tue, 16 Jul 2002 22:22:43 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id WAA19504 for ; Tue, 16 Jul 2002 22:22:42 +0200 (MET DST) Received: from sunny.pacific.net.au (sunny.pacific.net.au [203.25.148.40]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g6GKMeT22032 for ; Tue, 16 Jul 2002 22:22:41 +0200 (MET DST) Received: from wisma.pacific.net.au (wisma.pacific.net.au [210.23.129.72]) by sunny.pacific.net.au with ESMTP id g6GKMWSs001261; Wed, 17 Jul 2002 06:22:32 +1000 (EST) Received: from ozemail.com.au (ppp108.dyn26.pacific.net.au [61.8.26.108]) by wisma.pacific.net.au with ESMTP id GAA19275; Wed, 17 Jul 2002 06:22:30 +1000 (EST) Message-ID: <3D348085.1040809@ozemail.com.au> Date: Wed, 17 Jul 2002 06:22:29 +1000 From: John Max Skaller User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2.1) Gecko/20010901 X-Accept-Language: en-us MIME-Version: 1.0 To: Berke Durak CC: caml-list@inria.fr Subject: [Caml-list] Re: Statically detecting arrays bound exceptions ?? (was: Universal Serializer) References: <200207081952.PAA28813@hickory.cc.columbia.edu> <15657.61603.221054.289184@spike.artisan.com> <200207090442.AAA05638@hickory.cc.columbia.edu> <001f01c2271e$8037adf0$d100a8c0@warp> <3D2C5B77.6060303@ozemail.com.au> <200207102229.g6AMTKB22278@orchestra.cs.caltech.edu> <3D2ECE7F.5040108@ozemail.com.au> <20020714142540.A4150@gogol.zorgol> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Berke Durak wrote: >On Fri, Jul 12, 2002 at 10:41:35PM +1000, John Max Skaller wrote: >[...] > >>Ocaml run time errors include array (and string) bounds exceptions and >>infinite recursions: >>static type checking could detect the first, but not the second. >> > >Hey, wait a minute, how do you plan to statically detect bounds exceptions ? >It's as undecidable as detecting infinite recursions. > Nah. Just depends on your mindset. In Pascal, array indexes have a specific type, (possibly a subrange type). So it isn't possible to get an array bounds error, only a type error if the index is the wrong type. -- John Max Skaller, mailto:skaller@ozemail.com.au snail:10/1 Toxteth Rd, Glebe, NSW 2037, Australia. voice:61-2-9660-0850 ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners