r3 - 07 Nov 2007 - 13:43:20 - WhaleForestYou are here: TWiki >  Processing Web > ProcessingHandbookChinese > Structure1CodeElementsCaseSensitivity

Case Sensitivity 语法规则

英文写作中,有些字词需要开头大写而有些不需要。而在多数编程语言里也要注意大小写的交替,但Processing需要全部使用小写字母,例如,当你设定尺寸(size)时,一旦写成Size就会出现错误。请务必遵守Processing的命名规则。

size(200,200);
Background(102); // 错误!B在"background"函数中不需要大写
    
Edit | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r3 < r2 < r1 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback