Re: Array assignment
From: Brian Clausing (clausing_at_voyager.net)
Date: 10/30/03
- Next message: Martin Willett: "Re: Check the correction patch from the MS"
- Previous message: Brian Clausing: "Re: Array assignment"
- In reply to: Bruce Roberts: "Re: Array assignment"
- Next in thread: Bruce Roberts: "Re: Array assignment"
- Reply: Bruce Roberts: "Re: Array assignment"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 30 Oct 2003 00:06:45 -0500
Bruce Roberts wrote:
>
> "Nicolai Hansen" <nic@aub.dk> wrote in message
> news:d96764ff.0310290145.1d81492b@posting.google.com...
>
> > The sad part is that you can not do
> >
> > arr: array of integer = (10, 10, 0, -50);
> >
> > ie a dynamic array of integers, initialised with 4 default members...
> > there's as far as I see it no technical reason for this to be impossible
> :/
>
> I suspect that this is by-design. Inherent in the desire for dynamic array
> constants is an admission that one wants to create a constant with
> absolutely no idea of its values. This is not a comforting thought. Good
> design, ISTM, dictates that one should know exactly how many elements are
> required in a constant array before actually declaring the array. In fact,
> ISTM, that "dynamic array constant" is an oxymoron.
Then varying the length of a string is bad design?
var s: string;
s := 'abcd'
- Next message: Martin Willett: "Re: Check the correction patch from the MS"
- Previous message: Brian Clausing: "Re: Array assignment"
- In reply to: Bruce Roberts: "Re: Array assignment"
- Next in thread: Bruce Roberts: "Re: Array assignment"
- Reply: Bruce Roberts: "Re: Array assignment"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|