if(;){} opinion
Walter Bright
newshound at digitalmars.com
Tue Feb 28 11:26:27 PST 2006
"Lionello Lunesu" <lio at remove.lunesu.com> wrote in message
news:du1lnl$1ko0$1 at digitaldaemon.com...
>
> "Walter Bright" <newshound at digitalmars.com> wrote in message
> news:du187d$14bk$2 at digitaldaemon.com...
>> Pascal doesn't do array slicing.
>
> Probably GPC specific then:
> http://www.gnu-pascal.de/gpc/String-Slice-Access.html
The article does say it is for "Extended" Pascal. That's the trouble with
Pascal - it is unusable as defined. Every useful implementation found it
necessary to add numerous extensions.
> Although the notation array[x..y] was already used in 'normal' Pascal when
> declaring arrays.
Yes, but that isn't array slicing, it's more of a way to set the index for
the 'zeroth' element. This is not supported in D.
Pascalish nested functions, however, *are* in D <g>. That was the only
Pascal characteristic I missed.
More information about the Digitalmars-d
mailing list