User Tools

Site Tools


data-arrays-references

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
data-arrays-references [2018/08/22 02:28]
barryfp
data-arrays-references [2018/08/22 02:29]
barryfp [Inter-type assigns and hastype]
Line 157: Line 157:
 </​code>​ </​code>​
  
-You can query at runtime whether or not a given type has a particular sub-type identity by using the ''​hastype''​ operator. As an example, consider a function that receives an Object instance as a parameter. We can then use ''​hastype''​ to determine whether or not this Object is actually ​a File type and then call File operations on it:+You can query at runtime whether or not a given type has a particular sub-type identity by using the ''​hastype''​ operator. As an example, consider a function that receives an Object instance as a parameter. We can then use ''​hastype''​ to determine whether or not this Object is structurally equivalent to a File type and then call File operations on it:
  
 <code d> <code d>
data-arrays-references.txt ยท Last modified: 2019/05/28 10:45 by barryfp