lang_ref_identifiers.html 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Type"
  4. content="text/html; charset=iso-8859-1">
  5. <title>Language Reference - Identifiers</title>
  6. <link rel="stylesheet" href="lang_ref.css" type="text/css">
  7. </head>
  8. <body>
  9. <br>
  10. &nbsp;<span class="Command">&nbsp;Identifiers&nbsp;</span>
  11. <blockquote>
  12. <p>Identifiers are used for constant names, variable names, array names, function
  13. names and custom type names. <br>
  14. </p>
  15. <p>Identifiers must start with an alphabetic character, and may be following
  16. be any number of alphanumeric characters, or the underscore ('_') character.
  17. </p>
  18. <p>These are all valid identifiers:</p>
  19. </blockquote>
  20. <table width="90%" border="0" cellspacing="0" cellpadding="0" align="center">
  21. <tr>
  22. <td>
  23. <blockquote>
  24. <br>
  25. <p>- Hello </p>
  26. <p>- Score </p>
  27. <p>- player1 </p>
  28. <p>- time_to_live </p>
  29. <p>- t__ </p>
  30. </blockquote>
  31. </td>
  32. </tr>
  33. </table>
  34. <p>&nbsp;
  35. <blockquote>
  36. <p>Indentifiers are not case sensitive. <br>
  37. </p>
  38. <p>For example, 'Test', 'TEST' and 'test' are all the same identifiers.<br>
  39. </p>
  40. <p>However, it is allowed for identifiers to be reused for functions and custom
  41. types names.<br>
  42. </p>
  43. <p>For example, you can have a variable called 'test', a function called 'test'
  44. and custom type name called 'test'. Blitz will be able to tell which one you
  45. are refering to by the context in which it is used. </p>
  46. </blockquote>
  47. </body>
  48. </html>