Y-Less / indirection

PAWN function pointers.
Other
11 stars 5 forks source link

Can't use arrays that are indexed with variables in `@.` macro #1

Open AGraber opened 5 years ago

AGraber commented 5 years ago

The following:

static Func:FunctionArray[10]<i>;
@.FunctionArray[id](variable);

Compiles as:

(Indirect_Call(_:FunctionArray[id],_:(tagof(FunctionArray[id])),variable));

Which fails due to id being a variable

(error) unknown symbol, or not a constant symbol (symbol "id")