Page 1 of 1

[FIXED] Global is parsed in a buggy way since 16.80.0006

Posted: 26 May 2016 00:23
by Marco
Behaviour till 16.80.0005

Code: Select all

 global $a =       "hello world";

 text $a; //hello world
Behaviour since 16.80.0006

Code: Select all

 global $a =       "hello world";

 text $a; //      "hello world"
I think the new behaviour is unexpected and certainly not standard.

Re: Global is parsed in a buggy way since 16.80.0006

Posted: 26 May 2016 07:04
by bdeshi
permavars too.

Code: Select all

 $a        = "normal var";
 perm $b   = "perma var";
 global $c = "global var";
 echo $a . <crlf> . $b . <crlf> . $c;

Re: Global is parsed in a buggy way since 16.80.0006

Posted: 26 May 2016 08:09
by admin
The good thing is that "Scripting | Syntax Checking" caught it.

Well, I caught it, too. Upload soon.

Re: Global is parsed in a buggy way since 16.80.0006

Posted: 26 May 2016 09:21
by LittleBiG
admin wrote:The good thing is that "Scripting | Syntax Checking" caught it.

Well, I caught it, too. Upload soon.
Jeez I completely overlooked this somehow! Thanks for mentioning, I ticked it immediately.

Re: Global is parsed in a buggy way since 16.80.0006

Posted: 26 May 2016 11:06
by Marco
Fixed, thanks!

PS: in the changelog you mentioned some code cleanup. Any chance you can do something for the executable size as well? It's more a curiosity than a real necessity, however I couldn't help but notice the steady size increase of XYplorer.exe over the months.

Re: [FIXED] Global is parsed in a buggy way since 16.80.0006

Posted: 26 May 2016 20:06
by admin
It got 60 KB smaller thanks to the code cleanup. But, of course, more features come with bigger EXEs. But hey, isn't it wonderfully small compared to a) what the app can do, and b) the size of other apps nowadays that can do just one or two tricks?

Re: [FIXED] Global is parsed in a buggy way since 16.80.0006

Posted: 26 May 2016 20:38
by bdeshi
admin wrote:and b) the size of other apps nowadays that can do just one or two tricks?
[rant]Tell me about it.
NodeWebkit being adopted by many web-based cross-platform app builders, and now Atom/VSCode popularizing Electron -- suddenly every little app brings a whole ~40mb webbrowser environment with it: a markdown viewer, *a clipboard manager*, console utility frontends - the list goes on and on. Need an alarm clock? Download a browser. Need a calculator? download a browser. :evil: :evil: Not to mention the startup time is superfast -- not mentioning that, cause that's false.[/rant]