<p>On Mar 30, 2012 3:27 AM, "Michael Save" <<a href="mailto:savetheinterpod@gmail.com">savetheinterpod@gmail.com</a>> wrote:<br>
><br>
> Hi,<br>
><br>
> In VCL, the fact that you can't create your own variables at runtime<br>
> can sometimes be a limitation when writing very complicated configs.<br>
> You have to use the variables Varnish already has defined for you;<br>
> that is, resp.*, etc. You can of course use HTTP headers as temporary<br>
> variables, but that seems like a hack to me.<br>
><br>
> My question is: why doesn't VCL let you do custom variables? If I'm<br>
> not mistaking, a .vcl file is just an easy-to-read and easy-to-code<br>
> version of a C script (.vcl is compiled as .c at runtime), and it's<br>
> not too hard to create variables in C. Are user-defined variables ever<br>
> going to appear in VCL, or is that out of the scope of the Varnish<br>
> Cache project (if so, why)?<br>
><br>
> Thanks,<br>
> Michael<br>
><br>
> _______________________________________________</p>
<p>You may find this helpful:<br>
<a href="https://github.com/varnish/libvmod-var">https://github.com/varnish/libvmod-var</a> <br>
</p>