home *** CD-ROM | disk | FTP | other *** search
-
- -> example of using the external linklib nodelist.o
-
- EXTERN 'other/nodelist'
-
- OBJECT node
- next:PTR TO node
- prev:PTR TO node
- id:LONG
- ENDOBJECT
-
- OBJECT list OF node
- first:PTR TO node
- last:PTR TO node
- ENDOBJECT
-
- DEF l:list
-
- PROC main()
- DEF n:PTR TO node, a
- FOR a := 10 TO 0 STEP -1
- NEW n
- n.id := a
- AddOrd(l, n)
- ENDFOR
- Traverse(l, {bla})
- ENDPROC
-
- PROC bla()
- PrintF('node.id=\d\n', A0::node.id)
- ENDPROC
-
-
-