Files
harbour-core/harbour/tests/tstmacro.prg
Ron Pinkas 0bdf95967e 19991013-03:13 GMT+8 Ron Pinkas <Ron@Profit-Master.com>
* harbour.y
          + added TOKEN MACROALIAS and rules to support MemVar aliased macro and non aliased macro variables assignments.
   * harbour.l
          + added rules to support new TOKEN MACROALIAS
   +tests/tstmacro.prg
	  sample program to demonstarte new macro assigments support.
1999-10-13 10:33:26 +00:00

20 lines
227 B
Plaintext

Function nMyFunc( )
LOCAL n := 'cVar1'
PRIVATE cVar1
&n = 'Simple '
? M->cVar1
&( 'cVar' + '1' ) := 'Macro'
?? M->cVar1
M->&n = 'Aliased'
? M->cVar1
MEMVAR->&( 'cVar' + '1' ) := ' Macro'
?? M->cVar1
return NIL