LPC語言
外观
(重定向自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.