Path: news.cs.au.dk!not-for-mail From: Flemming Gram Christensen Newsgroups: comp.lang.beta Subject: Re: More newbie questions ... Date: 02 Jun 2000 11:33:23 +0200 Organization: University of Aarhus, Department of Computer Science (DAIMI) Lines: 31 Message-ID: References: <20000530105522.17371.qmail@noatun.mjolner.dk> <3933D308.6DFBD114@skynet.be> <39342244.49C38422@skynet.be> <39367914.F304CABE@skynet.be> NNTP-Posting-Host: odin.mjolner.dk X-Trace: xinwen.cs.au.dk 959938406 16868020 255.255.255.255 (2 Jun 2000 09:33:26 GMT) X-Complaints-To: news@cs.au.dk NNTP-Posting-Date: 2 Jun 2000 09:33:26 GMT X-Newsreader: Gnus v5.7/Emacs 20.4 Xref: news.cs.au.dk comp.lang.beta:12378 Atle writes: > > How do you mean iterators? > I found it! I don't want to destroy the 'good way' - but iterators are used in some languages (think they first came up in > smalltalk, then C++) whose only purpose is to spin through arrays, with a syntax comparable to forEach. It is supposed to 'simplify' > things, but I am not sure that goal was achieved. > There will typically be > class Array > class ArrayIterator > that you instantiate to a type. I don't like that way of doing it. Complicated. Look in beta/containers/arrayContainer.bet and use the scan pattern. > > No, no constructors. > I think I start to see why ... > > > > There is look into beta/guienv/ for a platform independent library. > > Eg. try beta/demo/guienv/*.bet > Thanks! I knew there had to be one! > > > > Or look into beta/demo/Xt for pure Xwindows interface. > > (very easy for doing Xlib or Xt or Xaw programming). > Is there any reason to do specific X programming? I guess I will find that out when going through guienv. I do not think so. The only reason for doing X programming directly would be because of experience or porting purposes. It is somewhat simple to map C Xt programs to BETA programs. Look at former post about a X10 game ported to BETA. Regards /Flemming Gram Christensen