Path: news.daimi.aau.dk!news.uni-c.dk!newsfeed.sunet.se!news00.sunet.se!sunic!news.sprintlink.net!EU.net!Norway.EU.net!nntp.uio.no!NewsWatcher!user From: kolbjorn.aambo@ub.uio.no (Kolbjørn Aambø) Newsgroups: comp.lang.beta Subject: Re: Templates Date: 17 Oct 1995 07:47:50 GMT Organization: University of Oslo Library Lines: 75 Message-ID: References: NNTP-Posting-Host: ubmac86.uio.no In article , eernst@fraxinus.daimi.aau.dk (Erik Ernst) wrote: > In article kolbjorn.aambo@ub.uio.no (Kolbjørn Aambø) writes: > > C++'s tool for creating tempates seems like a powerful tool to > generate better libraries. > > [snip] > > Have the originators of Beta experimented with the idea of > introducing templates to the language? > > Not in any way claiming to belong to that group of people .. > > My point in this article is: the problems solvable by using (some sort > of) templates _are already solved_ in BETA today. The basic idea is > to parameterize a pattern with one or more types (corresponding to the > type arguments to templates) by using virtuals: > > > list: > (# element:< object; (* this is a "type parameter" *) > append:< (# elem: ^element; enter elem[] do ... #); > ... > #); > > personList: list(# element::< person #); (* usage, i.e. "instantiation" *) > > Well so some kind of STL like construction is then probaly already made even in a persistent version? > > > Have the people behind Beta considered to introduce a UNICODE as the > characterset in the language. > > > This would be very interesting, indeed! It would be quite enchanting > to write code like > > Øllebrød: vælling > (# > do ... > #); > Well that was not what I hoped for: What I hoped for was a dynamic text implementation that could deal with UNICODE 16-bit characters without adding endian problems. Additionally I was hoping for a customisable sort order for that charater set. Since development goes so slowly I am quite able to change language to get something done easier. ................................................................ Universitetsbiblioteket i Oslo/Bibliografisk avd. The University of Oslo library/Bibliographic dept. N-0242 Oslo, Norway Kolbj|rn H. Aamb| University Librarian Phone: +47 22 85 91 36 Fax: +47 22 85 90 50 E-mail: kolbjorn.aambo@ub.uio.no http://www.nbo.uio.no/html/nansen/nanseneng.html http://www.nbo.uio.no/html/krigstr/krigstr.html ................................................................ There is No Way like Norway ................................................................ Welcome to Virtual Relativity!