计算机科学

首页 > 计算机科学

LPC (编程语言)

2018-09-05 18:19:17     所属分类:程序设计语言

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.

上一篇:LPC (编程语言)
下一篇:QuickBASIC
相关推荐