[fpc-pascal] Better usage of "with"
Marco van de Voort
marcov at stack.nl
Thu Jun 14 10:23:57 CEST 2018
In our previous episode, Ryan Joseph said:
> // works with function parameters also.
> // this is almost like a class helper or at very least mimics ?self? in methods.
>
> procedure OpenDoor(with var door: TDoor);
> begin
> state := true; // with imports door namespace into entire function scope
> end;
you set a runtime variable to add a compiletime scope ? I don't understand.
Is your reference language an interpreter?
More information about the fpc-pascal
mailing list