Return-Path: Delivered-To: apmail-jakarta-ant-dev-archive@apache.org Received: (qmail 52077 invoked from network); 20 Jul 2002 11:51:40 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 20 Jul 2002 11:51:40 -0000 Received: (qmail 24893 invoked by uid 97); 20 Jul 2002 11:51:53 -0000 Delivered-To: qmlist-jakarta-archive-ant-dev@jakarta.apache.org Received: (qmail 24877 invoked by uid 97); 20 Jul 2002 11:51:52 -0000 Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 24865 invoked by uid 98); 20 Jul 2002 11:51:52 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) X-Sent: 20 Jul 2002 11:51:34 GMT Message-ID: <3D394EC7.2010809@ehatchersolutions.com> Date: Sat, 20 Jul 2002 04:51:35 -0700 From: Erik Hatcher User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-US; rv:1.0.0) Gecko/20020529 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ant Developers List Subject: Re: Number Conversion References: <200207201527.40917.peter@apache.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Don't forget that there is a class available already called FlexInteger that does something similar. The 'o' and 'b' prefixes are non-standard, aren't they? Whereas FlexInteger uses Integer.decode(). So I'm -0 on this change given that the wrapper classes already support such capability. Erik Peter Donald wrote: > Hi, > > I would like to add a rule when we convert strings to attributes. This rule > being; > > Hexadecimal numbers begin with 0x, Octal numbers begin with 0o and binary > numbers begin with 0b, all other values are assumed to be decimal. > > It is backwards compatible (as it would be invalid to include 'x', 'o' or 'b' > in number in previous versions of ant. > > This rule would apply to all numerics (int, short, byte, long etc). > > Any problesm with this? > -- To unsubscribe, e-mail: For additional commands, e-mail: