#REFACTORING by cg
authorClaus Gittinger <cg@exept.de>
Fri, 11 May 2018 09:49:25 +0200
changeset 22898 c77cc993e3d8
parent 22897 dd7d2350443e
child 22899 468afe6fd785
#REFACTORING by cg class: ExternalBytes class comment/format in: #sizeofPointer
ExternalBytes.st
--- a/ExternalBytes.st	Fri May 11 09:39:19 2018 +0200
+++ b/ExternalBytes.st	Fri May 11 09:49:25 2018 +0200
@@ -807,7 +807,12 @@
 !
 
 sizeofPointer
-    "return the number of bytes used by the machine's native pointer"
+    "return the number of bytes used by the machine's native pointer.
+     Notice: this is inlined by the compiler(s) as a constant,
+     therefore, queries like 
+        'ExternalAddress pointerSize == 8'
+     cost nothing; they are compiled in as a constant 
+     (and even conditionals are eliminated)."
 
 %{  /* NOCONTEXT */
     RETURN (__mkSmallInteger( sizeof(char *)));