just realized that there should be no space in the adapt-samelevel command, but
I think that the processor is having issues with the scope rule for variables, i.e. if I do the following:
adapt "file.vcl"
message Variable = ?@variable1?
\
I would expect to always get the output
Variable =
But current processor will upon the message command "print" whatever value that was assigned to variable1 inside the file.vcl
i.e. adapt and adapt-samelevel seems to give the same result.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
To adapt at samelevel, I tried the following:
adapt "C:\VCLsrc\VclSettings.vcl"
works fine.
adapt -samelevel "C:\VCLsrc\VclSettings.vcl"
the result is that the processor crashed.
How do I issue the samelevel instruction to the adapt command?
just realized that there should be no space in the adapt-samelevel command, but
I think that the processor is having issues with the scope rule for variables, i.e. if I do the following:
adapt "file.vcl"
message Variable = ?@variable1?
\ I would expect to always get the output
Variable =
But current processor will upon the message command "print" whatever value that was assigned to variable1 inside the file.vcl
i.e. adapt and adapt-samelevel seems to give the same result.
That's right, thanks.
I will upload soon the version 1.1 where this is corrected.
i.e.
---------SPC.vcl----
#adapt "file.vcl"
#message Variable = ?@variable1?
-----------------------
---------file.vcl------
#set variable1 = 111
-----------------------
result: message : 'Variable = '
Errorstream: 'Variable variable1 is not defined.'
With #adapt-samelevel in file SPC.vcl the message will be : 'Variable = 111'
Last edit: Daniel Dan 2013-11-01