>>
>
> You get an AV because you're passing the argument by value. You need to 
> pass its address instead.
>
> Try this:
>
> void main() {
>  int i;
>  get(file, "i", &i);
>  writeln(i);
> }
>
> It will print "7".

Ah of course, thanks. 


Reply via email to