Re: program parameters
Waldek Hebisch <[email protected]> Thu, 19 Jan 2017 16:38:20 +0100 (CET)
| Newsgroups | gmane.comp.compilers.gpc |
|---|---|
| Message-ID | <[email protected]> |
Paul Isaacs wrote:
>
> Hello,
>
> Are program parameters tied in any way to command line parameters?
There is a nonstandars GPC extension so that you can set
them using '--gpc-rts' option to the program (see GPC
reference documentation for more detail). As Maurice
wrote for portablity it is better to avoid such use.
>
> Is it possible to set BindingType.Name from the command line using a
> program parameter?
>
> program( a ...
>
> var
> a : bindable Text;
> b : BindingType;
>
> begin
> b := Binding( a );
> Bind( a, b );
>
> where b.Name has been set from the command line.
Probably, you should just check if this works.
--
Waldek Hebisch
_______________________________________________
Gpc mailing list
[email protected]
https://www.g-n-u.de/mailman/listinfo/gpc