<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Ok, very good statement - normally I know the override mechanism
used by the custom VCL.<br>
Nevertheless my last email was incorrect - sorry for that.<br>
<br>
But: What happens when you include a vcl_recv INSIDE another
vcl_recv subroutine?<br>
This is what Frank did.<br>
<br>
Stefan<br>
--<br>
<a class="moz-txt-link-freetext" href="http://dmsp.de">http://dmsp.de</a><br>
<br>
Am 16.12.2010 17:59, schrieb Per Buer:
<blockquote
cite="mid:AANLkTin+xaMVsRQicdhOCU9TeBs346sCmW4i_NQX_QdC@mail.gmail.com"
type="cite">On Thu, Dec 16, 2010 at 2:30 PM, Stefan Pommerening <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:pom@dmsp.de" target="_blank">pom@dmsp.de</a>></span>
wrote:<br>
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;"> <br>
of couse you only need one single vcl_recv subroutine. This
applies to all vcl subroutines.<br>
I usually start with grabbing the default vcl and then add
everything I need to the existing (default) subroutines.<br>
<br>
If you use the include statement you have to keep in mind that
inclusion is a textual<br>
substitution - therefore no repeated definition of vcl_recv
(or even other subroutines)<br>
is allowed.<br>
</blockquote>
<div><br>
</div>
<div>Actually, multiple definitions of the same subroutine is
allowed. They are then concatenated, the flow being terminated
only by the return statements. This is how the default VCL get
overridden by your custom VCL. </div>
<div><br>
</div>
<div>There is a good example in the man vcl. Of course, this
might get very confusing when you have multiple vcl_recv
subroutines spread over several included files. Caution
advised. :-)</div>
</div>
</blockquote>
</body>
</html>