User Tools

Site Tools


language_definition

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
language_definition [2012/03/15 16:00] – [新语言与C/Pascal/Java的比较] maronglanguage_definition [2012/03/17 08:56] (current) – [新语言与C/Pascal/Java的比较] marong
Line 17: Line 17:
 | 注释      || 非嵌套 | 嵌套 | 非嵌套 | 嵌套 | | 注释      || 非嵌套 | 嵌套 | 非嵌套 | 嵌套 |
  
- 
-新语言的命名空间规则和java/c/pascal都不一样。我还是不喜欢这个样子。明年准备改掉 
  
 改进的建议(这学期不适用) 改进的建议(这学期不适用)
Line 26: Line 24:
 2. 函数,变量,类型有独立的名字空间 2. 函数,变量,类型有独立的名字空间
  
-3. 内层名字遮蔽外层同名的名字,而不是报错+3. 变量强制初始化
  
-其他(这学期不适用)+4. 变量可以在块中间声明
  
-5. 变量强制初始化+5. 去掉break和continue
  
-6. 变量可以在块的中间声明+6. 去掉逗号表达式
  
 ---by marong ---by marong
Line 83: Line 81:
   * ''**native** **int** readInt();''   * ''**native** **int** readInt();''
   * ''**native** **char** readChar();''   * ''**native** **char** readChar();''
-  * ''**native** **string** readString();'' 
-  * ''**native** **string** readLine();'' 
   * ''**native** **int** printInt(**int** i);''   * ''**native** **int** printInt(**int** i);''
   * ''**native** **int** printChar(**char** c);''   * ''**native** **int** printChar(**char** c);''
language_definition.1331827223.txt.gz · Last modified: 2012/03/15 16:00 by marong

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki