View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000790 | LDMud | LPC Language | public | 2011-10-27 09:32 | 2018-01-30 03:59 |
Reporter | _xtian_ | Assigned To | zesstra | ||
Priority | low | Severity | tweak | Reproducibility | N/A |
Status | resolved | Resolution | fixed | ||
Summary | 0000790: officially deprecate "static" (in variables and functions) | ||||
Description | I thought, I'd just put this up on the agenda: pro deprecation: - completely different use of "static" in other languages confuses a lot of programmers - in variables: has been replaced by "nosave" for ages - in functions: has no real unique use. Security mechanisms are better implemented via stack-based approach (see comments in https://ldmud.eu/mantis/view.php?id=751) con deprecation: - mudlibs have to be changed. not a lot of programmers left. | ||||
Tags | No tags attached. | ||||
External Data (URL) | |||||
|
Pheeewww. While I am usually in favor of clean-up, I think, I am very reluctant in this case: 1) MG has about 45000 variables+function which use static. That is a lot and probably similar in other muds. 2) protected and static are not completely equivalent. There are still applications where I deliberately use static, because I want that call_other(this_object, ...) can call the function. Also, I am actually not sure at the moment, if you can execute protected functions in this_object() with command() as it is possible with static... |
|
Setting to feedback until we got feedback from several people. |
|
Yes, with less and less programmers we should not burden us with uneccesary incompatible changes, you are right. But maybe just a comment in the documentation would be nice? (you shouldn't use this in new code) |
|
Fix committed in revision 9f018133b1c1c5b473a751d862addb563e0710b0 to master branch (see changeset 934 for details). Thank you for reporting! |
|
Fix committed in revision 632d68bf9427f177312b38461690923790302efd to umaster-3.3 branch (see changeset 936 for details). Thank you for reporting! |
|
Fix committed in revision 632d68bf9427f177312b38461690923790302efd to master-3.3 branch (see changeset 2196 for details). Thank you for reporting! |
|
Fix committed in revision 632d68bf9427f177312b38461690923790302efd to master-3.3 branch (see changeset 3540 for details). Thank you for reporting! |
|
Fix committed in revision 9f018133b1c1c5b473a751d862addb563e0710b0 to master branch (see changeset 3851 for details). Thank you for reporting! |
Date Modified | Username | Field | Change |
---|---|---|---|
2011-10-27 09:32 | _xtian_ | New Issue | |
2011-10-27 09:58 | zesstra | Note Added: 0002070 | |
2011-10-31 12:43 | zesstra | Note Added: 0002071 | |
2011-10-31 12:43 | zesstra | Assigned To | => zesstra |
2011-10-31 12:43 | zesstra | Status | new => feedback |
2011-11-01 16:34 | _xtian_ | Note Added: 0002075 | |
2011-11-01 16:34 | _xtian_ | Status | feedback => assigned |
2014-02-23 19:23 |
|
Source_changeset_attached | => ldmud.git master 9f018133 |
2014-02-23 19:23 |
|
Note Added: 0002224 | |
2014-02-23 19:23 |
|
Assigned To | zesstra => ldmud-bugs |
2014-02-23 19:23 |
|
Status | assigned => resolved |
2014-02-23 19:23 |
|
Resolution | open => fixed |
2014-02-23 19:26 |
|
Source_changeset_attached | => ldmud.git umaster-3.3 632d68bf |
2014-02-23 19:26 |
|
Note Added: 0002226 | |
2018-01-29 18:59 | zesstra | Source_changeset_attached | => ldmud.git master 9f018133 |
2018-01-29 18:59 | zesstra | Source_changeset_attached | => ldmud.git master-3.3 632d68bf |
2018-01-29 18:59 | zesstra | Note Added: 0002315 | |
2018-01-29 18:59 | zesstra | Assigned To | ldmud-bugs => zesstra |
2018-01-29 21:57 | zesstra | Source_changeset_attached | => ldmud.git master 9f018133 |
2018-01-29 21:57 | zesstra | Source_changeset_attached | => ldmud.git master-3.3 632d68bf |
2018-01-29 21:57 | zesstra | Note Added: 0002366 | |
2018-01-30 03:59 | zesstra | Source_changeset_attached | => ldmud.git master 9f018133 |
2018-01-30 03:59 | zesstra | Note Added: 0002417 |