comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Why doesn't Ada allow user-defined attributes?
Date: Sun, 23 Jul 2017 10:22:14 +0200
Date: 2017-07-23T10:22:14+02:00	[thread overview]
Message-ID: <ol1mbm$36d$1@gioia.aioe.org> (raw)
In-Reply-To: ol1g7l$udm$1@dont-email.me

On 2017-07-23 08:41, G.B. wrote:

> An order established by counting is not a property of the set it self,
> but may involve listing it somehow.

How exactly.

> A specific ordering is not needed for counting.

Not specific but some, any ordering is required. There is none. Full stop.

>>>> Lots of external things cannot be, e.g. a file you have no 
>>>> permission to read.
>>>
>>> A file needs to have been _counted_ byte by byte,
>>> or allocated using a known _count_ of bytes, etc.
>>> in order to have this length.
>>
>> No. File length is an attribute of a file. You don't need to read file 
>> or to allocate it.
> 
> Someone or something must have established the count by,
> well, counting.

It does not matter (even if it were true).

> Otherwise no file can meaningfully have
> that attribute (length) in the first place!

Surely it can. There is a system call "set file length". Get sources, 
look at the implementation. No counting there.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de


  reply	other threads:[~2017-07-23  8:22 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-20  0:02 Why doesn't Ada allow user-defined attributes? Shark8
2017-07-20  9:34 ` Brian Drummond
2017-07-20 16:07   ` Shark8
2017-07-21  4:46     ` Georg Bauhaus
2017-07-21  7:08       ` Dmitry A. Kazakov
2017-07-21 17:11         ` Georg Bauhaus
2017-07-21 19:39           ` Dmitry A. Kazakov
2017-07-22 16:33             ` G.B.
2017-07-22 20:12               ` Dmitry A. Kazakov
2017-07-23  6:41                 ` G.B.
2017-07-23  8:22                   ` Dmitry A. Kazakov [this message]
2017-07-24 17:52                     ` G.B.
2017-07-20 18:53 ` Randy Brukardt
2017-07-20 23:58 ` Matt Borchers
2017-07-21  7:14   ` Simon Wright
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox