MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 1 | NAME |
Zesstra | 7ea4a03 | 2019-11-26 20:11:40 +0100 | [diff] [blame] | 2 | master |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 3 | |
| 4 | DESCRIPTION |
Zesstra | 7ea4a03 | 2019-11-26 20:11:40 +0100 | [diff] [blame] | 5 | This directory contains descriptions for the functions that |
| 6 | Amylaar's version of the LPC parser, expects to find in the |
| 7 | master object (similar to lfuns, but for the master object |
| 8 | only). The name of the master object is hardcoded in the |
| 9 | parser (to "secure/master"). |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 10 | |
Zesstra | 7ea4a03 | 2019-11-26 20:11:40 +0100 | [diff] [blame] | 11 | The master is the gateway between the interpreter and the |
| 12 | mudlib to perform actions with mudlib specific effects. Calls |
| 13 | to the master by the interpreter have an automatic catch() in |
| 14 | effect. Functions to be called by the driver can be public |
| 15 | or static, but not private. |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 16 | |
Zesstra | 7ea4a03 | 2019-11-26 20:11:40 +0100 | [diff] [blame] | 17 | Note that the master is loaded first of all objects. Thus you |
| 18 | shouldn't inherit an other object, nor is the compiler able to |
| 19 | search include files (read: they must be specified with full |
| 20 | path). |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 21 | |
Zesstra | 7ea4a03 | 2019-11-26 20:11:40 +0100 | [diff] [blame] | 22 | Amylaar says: actually, you can inherit, but the file will be |
| 23 | loaded then before the master, which isn't good for most |
| 24 | files. |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 25 | |
Zesstra | 7ea4a03 | 2019-11-26 20:11:40 +0100 | [diff] [blame] | 26 | Refer to 'master-all' for the survey of the masters internals. |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 27 | |
| 28 | SEE ALSO |
Zesstra | 7ea4a03 | 2019-11-26 20:11:40 +0100 | [diff] [blame] | 29 | master-all(M) |
| 30 | efun(E), applied(A), concepts(C), driver(D), lpc(LPC) |