LPC语言
外观
LPC 全名Lars Pensjö C,是一种编程语言,由Lars Pensjö所发展出来的。
LPC类似C语言,语法大致相同,但是LPC 是一面向对象语言,由物件(Object)组成,但LPC又没有class的概念, LPC 物件是一种 blueprint 物件, 及其clones。物件具有变数 (attributes) 和函式 (methods). 变数可存物件的状态。LPC 多用于开发MUD。
资料型别
[编辑]一般资料型别
[编辑]- object
- 任何的 LPC object, 包含 blueprints 与 clones. Available in all known drivers. Has no literal form as such.
object obj = clone_object("/std/weapon");
- int
- 32-bit 整数. Available in all known drivers. Literal form is the bare number.
int number = 23;
外部链接
[编辑]- LPC Basics (页面存档备份,存于互联网档案馆) by George Reese on Apr 23rd, 1993
- NannyMUD LPC by Mats H. Carlberg in March in 1998
- Discworld MUD's LPC for Dummies, first edition (页面存档备份,存于互联网档案馆) by Michael Heron, October 2000.
- LPC Tutorial (页面存档备份,存于互联网档案馆) by Ronny Wikh on Jul 8th, 2003
- Discworld MUD's LPC for Dummies, Book 1, second edition by Michael Heron, April 2009
- Discworld MUD's LPC for Dummies, Book 2, first edition by Michael Heron, April 2009
- LPMuds.net (页面存档备份,存于互联网档案馆) A resource for MUDs that use LPC.