On (14/11/02 16:21), Garrett Goebel wrote: > From: Garrett Goebel <[EMAIL PROTECTED]> > To: 'Stéphane Payrard' <[EMAIL PROTECTED]>, > Garrett Goebel <[EMAIL PROTECTED]> > Cc: [EMAIL PROTECTED] > Subject: RE: Glossary? > Date: Thu, 14 Nov 2002 16:21:23 -0600 > > Stéphane Payrard wrote: > > On (14/11/02 14:29), Garrett Goebel wrote: > > > > > > It is interesting that no one has yet taken the time to > > > start defining the terms we're using. > > > > > > For instance what is a literal? > > > > > > Would everyone agree with the following definition? > > > > > > A literal is the represention of a constant value. It is > > > important not to confuse the representation with the value. > > > To illustrate this b1000001, 0101, 0x41, and 64:11 are all > > > literal numeric integer representations of the value more > > > commonly represented in decimal notation as 65. > > > > But when we say literal array, do we talk about the representation > > or the value? > > The representation of a fixed value. > > If a literal is the representation of a constant value, then a literal array > is yet another representation of a constant value. For example, the C string > literal 'ABCD' is a literal array of bytes equivalent to the little-endian > integer literal 0x44434241. I've seen a lanugage with a literal array > notation like #[65,66,67,68] that would be equivalent... but I'm not aware > of any C syntax to do something similar. > > However, I should add that it seems as often as not that when other people > talk of literal arrays, they talk about arrays of literals, and not arrays > representing fixed values.
Even more so in perl5; we indeed speak of list instead of litteral array because besides of the constness they behave differently. In scalar context a list returns its last element, but an array returns its size. Is that "fixed" in Perl6? -- stef > > -- > Garrett Goebel > IS Development Specialist > > ScriptPro Direct: 913.403.5261 > 5828 Reeds Road Main: 913.384.1008 > Mission, KS 66202 Fax: 913.384.2180 > www.scriptpro.com [EMAIL PROTECTED]