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;

外部連結

Wikiwand in your browser!

Seamless Wikipedia browsing. On steroids.

Every time you click a link to Wikipedia, Wiktionary or Wikiquote in your browser's search results, it will show the modern Wikiwand interface.

Wikiwand extension is a five stars, simple, with minimum permission required to keep your browsing private, safe and transparent.