Gerd Neu­ge­bauer. Con­ven­ti­o­nal Sco­ping of Re­gis­ters – An Ex­pe­ri­ment in εχTeX. In BachoTeX 2007. GUST, 2007.
TeX pro­vides groups as a means to re­strict the vi­si­bi­li­ty of re­gis­ters. This con­struc­tion is well known in the TeX world but does not co­in­ci­de with the groups as known from other pro­gram­ming lan­gu­a­ges. If we re­frain from sto­ring the re­gis­ter value in a glo­bal ar­ray we can come to the al­ter­na­te so­lu­tion of sto­ring it in the con­trol se­quence used to ac­cess it. With this va­ri­ant we can pro­vide a means to de­fine an ar­bi­tra­ry num­ber of re­gis­ters which fol­low the same sco­ping rules ike the va­ri­a­bles in Pas­cal-like lan­gu­a­ges.

εχTeX is a re­im­ple­men­ta­ti­on of TeX in Java. It is de­ve­loped with the ex­ten­si­bi­li­ty and con­fi­gu­ra­bi­li­ty in mind. The idea of an alter­native sto­rage for re­gis­ters can be im­ple­men­ted in εχTeX as an ex­ten­sion. It is shown which steps are re­quired for such an im­ple­men­ta­ti­on. In this course the ex­ten­si­bi­li­ty of εχTeX is de­mon­stra­ted.