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.