Login
Username:

Password:

Remember me



Lost Password?

Register now!
Sections
Who's Online
41 user(s) are online (27 user(s) are browsing Forums)

Members: 1
Guests: 40

DJBase, more...
Support us!
Recent OS4 Files
OS4Depot.net
Report message:*
 

Re: Is Forbid() needed for SetMethod()?

Subject: Re: Is Forbid() needed for SetMethod()?
by Severin on 2019/4/9 1:31:19

Forbid() and permit() are evil, do not use them unless absolutly required and keep any code between them as short as possible.

If anyone remembers XStream the proposed AHI replacement, that was eventually abandoned due to the amount of forbid()/permit() calls being used system wide which caused XStream to stutter and click. Since then a lot of work has been done to remove them from OS4.

So basically you have to use them for OS3 but can usually avoid them for OS4 unless specificly told to use them eg. getting a list on currently open screens or windows where something opening or closing a screen or window in mid scan would cause havoc.
Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project