]> git.rm.cloudns.org Git - xonotic/xonotic.wiki.git/commitdiff
(Commit created by redmine exporter script from page "NewQC" version 16)
authorBlub <blub@speed.at>
Sun, 28 Mar 2010 05:32:00 +0000 (05:32 +0000)
committerRedmineExport <redmineexport@dev.xonotic.org>
Mon, 17 Nov 2014 17:53:33 +0000 (17:53 +0000)
NewQC.textile

index beef7e5c33b70511b0633a23fb2eaec8df88bdce..7f4bdb2c0c4ecde183d0dd7518e28986f14861d5 100644 (file)
@@ -8,30 +8,16 @@ In fteqcc there are some ambiguities regarding fieldpointers, function pointers,
 A clean syntax is needed, *SUGGESTIONS ARE WELCOME*, my(blub's) current suggestion is:
 
 |_.definition|_.meaning|
+|<code>float foo</code>|           global variable|
+|<code>float .foo</code>|          entity field|
+|<code>.float foo</code>|          fieldpointer|
+|<code>.float .foo</code>|         entity field of type fieldpointer|
 |<code>float foo(void)</code>|     function|
 |<code>float foo*(void)</code>|    function pointer|
-|<code>.float foo(void)</code>|           member: method/function pointer|
-|<code>..float foo(void)</code>|/2. member: method/function pointer returning .float|
-|<code>..*float foo(void)</code>|
-|<code>.*float foo*(void)</code>|  function pointer returning .float|
-|<code>.*float</code>|             fieldpointer|
-|<code>.*float foo(void)</code>|   fieldpointer: method/function pointer|
-|<code>.*.float foo(void)</code>|  fieldpointer: method/function pointer returning .float|
-
-
-Additionally, at places where the definition of members or global functions is not allowed, they will be treated like fieldpointers.
-So inside parameterlists or a functionbody the list is as follows:
-
-|_.definition|_.meaning|
-|<code>float foo(void)</code>|     *function pointer*|
-|<code>float foo*(void)</code>|    function pointer|
-|<code>.float foo(void)</code>|           *fieldpointer: method/function pointer*|
-|<code>..float foo(void)</code>|/2. *fieldpointer: method/function pointer returning .float*|
-|<code>..*float foo(void)</code>|
-|<code>.*float foo*(void)</code>|  function pointer returning .float|
-|<code>.*float</code>|             fieldpointer|
-|<code>.*float foo(void)</code>|   fieldpointer: method/function pointer|
-|<code>.*.float foo(void)</code>|  fieldpointer: method/function pointer returning .float|
+|<code>.float foo(void)</code>|    function returning a fieldpointer .float|
+|<code>.float foo*(void)</code>|   function pointer, returning a fieldpointer .float|
+|<code>float .foo(void)</code>|    entity field of type function returning float|
+|<code>.float .foo(void)</code>|   entity field of type function returning fieldpointer|
 
 h2. Function definitions: