Sujet : Object in AWK
De : cosmogen (at) *nospam* gmail.com (digi_cs)
Groupes : comp.lang.awkDate : 12. Oct 2024, 09:28:48
Autres entêtes
Organisation : SunSITE.dk - Supporting Open source
Message-ID : <670a341a$0$712$14726298@news.sunsite.dk>
here is the small illustration of what is object in awk:
https://github.com/digics/UID10/POINTER.jpgthe ptr - is the any string that is used to address data in global arrays-fields
so the all object's data is always located in global arrays using ptr as the index:
FIELD[ ptr ]
passing ptr - meaning passing unlimited number of possible arrays or strings - that's is the object is
however to make an abstract unique string ptr "true" pointer we need associate it with it's class udentifier - and that is differ true pointer from an unique string - it's mandatory association with the class
if ( ptr in CLASSPTR )
# ptr is a pointer
This association with the class is what turns a simple string into a "true" pointer.
--------------= Posted using GrabIt =----------------
------= Binary Usenet downloading made easy =---------
-= Get GrabIt for free from
https://www.shemes.com/ =-