From: Peter Hickman Date: 2002-07-17T17:17:06+09:00 Subject: Re: TkText no -textvariable workaround? Hal E. Fulton wrote: > >In older versions of FORTRAN, there was a simple way of >doing just that -- I forget how it worked -- a COMMON >block or something? You could have a stored "constant" 1 >and change it (say) to 2... upon which every 1 referenced >as a constant in the program would be changed to a 2 >internally (since the compiler pooled its constants). So >a statement MYVAR = 1 would then assign the value 2 when >it was executed... amazing language, FORTRAN. Usually when >you're given enough rope to hang yourself, you gain >flexibility and power as a benefit. Not in this case! > The 'technique' was called the literal pool. It was a nightmare to debug especially with Fortran's overlayed variables.