Re: Scripting Bugs
Posted: 20 Mar 2015 09:08
... and beyond. 
Forum for XYplorer Users and Developers
https://www.xyplorer.com/xyfc/
For me it shows that there's something wrong in the concept. (Beside the situation, that stacking quotes often looks quite strange...)admin wrote:I share TheQwerty's mixed feelings about this. All these work now, and some of them do look a bit funny:
Code: Select all
echo <get "genericfiletype" '{:Image}'>; echo "<get "genericfiletype" '{:Image}'>"; //hmm... echo "<get ""genericfiletype"" '{:Image}'>"; //hmm... echo eval("<get " . "genericfiletype" '{:Image}'>); $g = genericfiletype; echo eval(<get "$g" '{:Image}'>);
Code: Select all
echo "<get "genericfiletype" '{:Image}'>"; //hmm...Code: Select all
echo "<get ". genericfiletype . " '{:Image}'>";Makes sense? Lazyness?TheQwerty wrote:Can we just stop using the variable version of Get in places where it makes no sense?
It only exists to provide access to the capabilities of the Get command in places where scripting is not available - the title bar template being the main one.
If you are writing a script there is absolutely no reason to ever use <get ...> or <prop ...>.