Path: news.daimi.aau.dk!news-b.uni-c.dk!news.uni-c.dk!nntp-oslo.UNINETT.no!nntp-trd.UNINETT.no!online.no!Oslo2.Norway.EU.net!Norway.EU.net!nntp.uio.no!www.nntp.primenet.com!nntp.primenet.com!feed1.news.erols.com!howland.erols.net!newsfeed.internetmci.com!news-in2.uu.net!comp.vuw.ac.nz!canterbury.ac.nz!usenet From: kasper@rakau.cosc.canterbury.ac.nz (Kasper Osterbye) Newsgroups: comp.lang.beta Subject: Re: Redefinition of attributes in BETA (Q) Date: 13 Oct 1996 22:32:26 GMT Organization: University of Canterbury Lines: 43 Message-ID: References: <325B9F88.1C10@informatik.uni-stuttgart.de> NNTP-Posting-Host: 132.181.12.84 In-reply-to: Bernd Holzmueller's message of Wed, 09 Oct 1996 14:50:16 +0200 > From: Bernd Holzmueller > Newsgroups: comp.lang.beta > Date: Wed, 09 Oct 1996 14:50:16 +0200 > Organization: University of Stuttgart > > Is it possible to give a completely new attribute definition in a > subpattern for a non-virtual attribute? And, if so, does the subpattern > then contain both attribute definitions (like in SIMULA)? And, if so, > how can one access the overriden attribute? > > E.g., is it allowed to write > > V: (# A: @Integer; #) > > W: V (# A: @Real; #) > > and does then the W pattern look like > > (# A: @Integer; A: @Real; #) ? You got it all right! From within W you might refere to the A in V as "this(V).A". If A in V is virtual, you can also override it as in V: (# A: