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

Things you’d like to miss in the future...
Forum rules
:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:

:info: Please include the following information:
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: We recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once.

:info: When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".

:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:
Post Reply
Marco
Posts: 2354
Joined: 27 Jun 2011 15:20

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

Post 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.
Last edited by Marco on 26 May 2016 11:06, edited 1 time in total.
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: Global is parsed in a buggy way since 16.80.0006

Post by bdeshi »

permavars too.

Code: Select all

 $a        = "normal var";
 perm $b   = "perma var";
 global $c = "global var";
 echo $a . <crlf> . $b . <crlf> . $c;
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

admin
Site Admin
Posts: 65012
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Global is parsed in a buggy way since 16.80.0006

Post by admin »

The good thing is that "Scripting | Syntax Checking" caught it.

Well, I caught it, too. Upload soon.

LittleBiG
Posts: 1848
Joined: 08 Apr 2011 12:57
Location: Win10x64

Re: Global is parsed in a buggy way since 16.80.0006

Post 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.

Marco
Posts: 2354
Joined: 27 Jun 2011 15:20

Re: Global is parsed in a buggy way since 16.80.0006

Post 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.
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

admin
Site Admin
Posts: 65012
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

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

Post 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?

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

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

Post 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]
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

Post Reply