Path: news.daimi.aau.dk!news-feed.inet.tele.dk!enews.sgi.com!news.sgi.com!news.mathworks.com!EU.net!news2.EUnet.fr!Belgium.EU.net!chaos.kulnet.kuleuven.ac.be!idefix.CS.kuleuven.ac.be!usenet From: Walid Al-Ahmad Newsgroups: comp.lang.beta Subject: constant & private attributes Date: Wed, 20 Nov 1996 11:51:34 +0100 Organization: Katholieke Universiteit Leuven Lines: 11 Distribution: world Message-ID: <3292E2B6.41C67EA6@cs.kuleuven.ac.be> NNTP-Posting-Host: goofy.cs.kuleuven.ac.be Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.0 (X11; I; SunOS 4.1.3_U1 sun4) Xref: news.daimi.aau.dk comp.lang.beta:10885 Hello evreybody, I have the following two questions for which I do not, directly, find answer in the book of Madsen et al. : 1) How can I define constant (integer, real, ..) attributes in Beta ? How is PI defined in the math library for example ? 2) Is it possible to manipulate attributes outside the pattern ? Are they read-only variables like Eiffel's attributes ? Can I do something like this : A : (# x :@integer; ... #) a : @A; 3->a.x