home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / amiga / misc / 20546 < prev    next >
Encoding:
Internet Message Format  |  1993-01-27  |  1.4 KB

  1. Path: sparky!uunet!cbmvax!bagate!dsinc!spool.mu.edu!nigel.msen.com!math.fu-berlin.de!uniol!Thomas.Herlyn
  2. From: Thomas.Herlyn@arbi.informatik.uni-oldenburg.de (Thomas Herlyn)
  3. Newsgroups: comp.sys.amiga.misc
  4. Subject: E is impressing, but there are problems!
  5. Message-ID: <1993Jan27.204508.19706@arbi.Informatik.Uni-Oldenburg.DE>
  6. Date: 27 Jan 93 20:26:26 GMT
  7. Sender: news@arbi.Informatik.Uni-Oldenburg.DE
  8. Organization: University of Oldenburg, Germany
  9. Lines: 33
  10.  
  11. I am using the compiler about a week now and the possibilities
  12. and the compilation speed are quite impressing. To play around
  13. with lists isn't easy, but i think i got it now.
  14.  
  15. But unfortunately there are a few things doing wrong:
  16.  
  17. 1. Try this: (from the reference manual)
  18. OBJECT myString
  19.  len:CHAR, data[9]:CHAR
  20. ENDOBJECT
  21. DEF a:myString,b
  22.  
  23. a.len:= ... is right, BUT
  24. a.data[2]:= ... gives you an ILLEGAL USE/REFERENCE TO OBJECT error
  25.  
  26. Does this mean i will never be able to use an array as a component
  27. of an object and access it later, or is it just a bug???
  28.  
  29. 2. strangeness with lists:
  30. do the following:
  31.  
  32. DEF a[4]:LIST
  33.     ListAdd(a,[<here you place any EString>],1)
  34.     WriteF('\s\n',a[0])
  35. this writes the content of the EString, works fine. But if you
  36. allocate the List dynamically (absolutely legal), like
  37. DEF a
  38.     a:= List(4)
  39. the two program lines ListAdd..,WriteF.. does not write out ANYTHING!
  40.  
  41. All helps are welcomed,
  42.  
  43.     Bye, Thomas Herlyn
  44.