contents.gifindex.gif

@Irpc - Indefinite Repeat, Character Directive

Syntax

@IRPC dummy_arg (arg) {block}

dummy_arg - A dummy argument

arg - An actual argument, or a dummy argument name preceded by a "?"

block - A valid block of text

Use

@IRPC causes the block to be repeated in the source file n times, where n equals the number of characters contained in arg. Each time the block is repeated, the dummy argument takes on the value of the next successive character.

Example

@IRPC A (Cat)
{B = ?A ;
}

results in:

C ;
B = a ;
B = t ;

which is inserted into the source file at the location of the @IRPC directive.


See Also

@irp