From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: * X-Spam-Status: No, score=1.7 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_REPLYTO,REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 10ad19,59d1a7436aa0f405 X-Google-Attributes: gid10ad19,public X-Google-Thread: 11440e,59d1a7436aa0f405 X-Google-Attributes: gid11440e,public X-Google-Thread: 101deb,59d1a7436aa0f405 X-Google-Attributes: gid101deb,public X-Google-Thread: 103376,59d1a7436aa0f405 X-Google-Attributes: gid103376,public X-Google-Thread: 1073c2,59d1a7436aa0f405 X-Google-Attributes: gid1073c2,public X-Google-Thread: 10a146,59d1a7436aa0f405 X-Google-Attributes: gid10a146,public X-Google-Thread: 107a89,59d1a7436aa0f405 X-Google-Attributes: gid107a89,public X-Google-ArrivalTime: 2001-05-13 11:04:03 PST Newsgroups: comp.lang.ada,comp.lang.awk,comp.lang.clarion,comp.lang.java.programmer,comp.lang.pl1,comp.lang.vrml,comp.lang.ruby Path: archiver1.sj.google.com!newsfeed.google.com!sn-xit-03!supernews.com!freenix!fr.usenet-edu.net!usenet-edu.net!newsfeed.wirehub.nl!newspeer.clara.net!news.clara.net!server3.netnews.ja.net!bath.ac.uk!unknown From: Tim Tyler Subject: Re: Length limit for variable names in your language? Content-Type: text/plain; charset=ISO-8859-1 User-Agent: tin/1.4.3-20000502 ("Marian") (UNIX) (Linux/2.2.19 (i686)) Reply-To: tt@iname.com Content-Transfer-Encoding: 8bit Sender: unknown@bits.bris.ac.uk (Address not verified) Organization: University of Bristol, UK Message-ID: References: <3AFE60D8.6C3282B7@my-deja.com> Mime-Version: 1.0 Date: Sun, 13 May 2001 17:55:16 GMT Xref: archiver1.sj.google.com comp.lang.ada:7460 comp.lang.awk:2428 comp.lang.clarion:19147 comp.lang.java.programmer:67258 comp.lang.pl1:576 comp.lang.vrml:3227 comp.lang.ruby:9253 Date: 2001-05-13T17:55:16+00:00 List-Id: Java - from the end of: http://java.sun.com/docs/books/vmspec/html/ClassFile.doc.html ``The amount of code per method is limited to 65535 bytes by the sizes of the indices in the exception_table of the Code attribute (�4.7.4), in the LineNumberTable attribute (�4.7.6), and in the LocalVariableTable attribute (�4.7.7).'' I believe this is the major limitation that might reflect on the maximum length of local variable names in Java bytecode. I can't find any maximum limit on the length of static variables - this might in principle depend on the availablility of memory. Since these limits are in the VM specification - and no limits appear to be specified in the language specification - a compiler may be at liberty to rename private variables to avoid the issue. -- __________ http://rockz.co.uk/ http://alife.co.uk/ http://hex.org.uk/ |im |yler http://atoms.org.uk/ http://mandala.co.uk/ tt@iname.com