On Tuesday 13 March 2007 07:54, Nuno Carvalho via RT wrote: > I've allowed for any number of digits in register names, as long that > the number specified always fits in a 32 integer value. Meaning, if the > number defined in the register name is less than MAX_INT then it's ok to > proceed, else get an error to avoid segmentation fault. Example: > > $ cat test.pir > .sub main :main > P8888 = new Integer > P8888 = 1 > print P8888 > .end > $ ./parrot test.pir > 1 > > $ cat test2.pir > .sub main :main > P99999999999999999999 = new Integer > P99999999999999999999 = 1 > print P99999999999999999999 > .end > $ ./parrot test2.pir > error:imcc:number in 'P99999999999999999999' out of range > in file 'test2.pir' line 2
That's much nicer. Could the error message be "register number in...." though? One extra word of clarity could help. -- c
