ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


new:acc

Differences

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

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
new:acc [2018/02/20 16:03] – created korshunnew:acc [2018/02/20 16:06] korshun
Line 22: Line 22:
 </code> </code>
  
-Local variables can't have the same names as any global names (function, constant, variable names). Unlike other compilers, local variable names don't shadow the global names, but trigger a compiler error.+Local variables can't have the same names as any global names (function, constant, variable names). Unlike other compilers, local variable names don't shadow the respective global names, but trigger a compiler error
 + 
 +==== (void) is mandatory ==== 
 + 
 +<code> 
 +function void f(void) {} // OK 
 +function void g() {} // ERROR 
 +</code> 
 + 
 +For some reason, writing ''(void)'' for empty argument lists is mandatory, unlike other compilers.
  
 ==== No "fixed" type ==== ==== No "fixed" type ====
new/acc.txt · Last modified: 2018/02/20 18:19 by korshun