Path: news.cs.au.dk!not-for-mail From: Jacob Seligmann Newsgroups: comp.lang.beta Subject: Re: Am I missing something obvious Date: 23 Oct 2000 12:50:11 -0000 Organization: University of Aarhus, Department of Computer Science (DAIMI) Lines: 24 Approved: mailtonews@cs.au.dk Distribution: world Message-ID: <20001023125011.21892.qmail@noatun.mjolner.dk> Reply-To: Jacob Seligmann NNTP-Posting-Host: cs.au.dk X-Trace: gjallar.cs.au.dk 972305420 5723058 130.225.16.1 (23 Oct 2000 12:50:20 GMT) X-Complaints-To: usenet@cs.au.dk NNTP-Posting-Date: Mon, 23 Oct 2000 12:50:20 +0000 (UTC) Xref: news.cs.au.dk comp.lang.beta:12610 Hi Atle, > I went back to my sample programs, and noticed that I had > forgotten the & in front of every procedure and function pattern I > had written, and they all work as expected. > > So my question is: Have I overlooked somethng obvious? > Are my programs wrong, and if they are, why do they work? When you omit the ampersand, you're telling the compiler to inline your object. This is perfectly fine (and potentially a bit faster) for virtually all practical uses. See Section 5.10.2 ("Construction modes and inserted objects") in the BETA book of you want to know more. Cheers, /Jacob Seligmann ------------------------------------------------------------------------ Mjølner Informatics A/S Phone: +45 86 20 20 11 - 2777 Science Park Aarhus Mobile: +45 20 65 54 11 Gustav Wieds Vej 10 Fax: +45 70 27 43 44 DK-8000 Århus C E-mail: jacobse@mjolner.dk Denmark Web: http://www.mjolner.dk ------------------------------------------------------------------------