* What exactly is the ' operator
@ 2004-10-06 9:40 matthias_k
2004-10-06 10:18 ` Marius Amado Alves
0 siblings, 1 reply; 9+ messages in thread
From: matthias_k @ 2004-10-06 9:40 UTC (permalink / raw)
Hello,
I can't find the specifics about the mysterious ' operator, which
purpose seems to access certain attributes of a datatype.
However I've seen it being used in the most various situations, so I was
wondering what exactly it is used for, how it is called, etc.
Furthermore, can I define my own '-operations?
Thanks in advance,
Matthias
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: What exactly is the ' operator
2004-10-06 9:40 What exactly is the ' operator matthias_k
@ 2004-10-06 10:18 ` Marius Amado Alves
2004-10-06 10:33 ` matthias_k
2004-10-06 17:28 ` Martin Krischik
0 siblings, 2 replies; 9+ messages in thread
From: Marius Amado Alves @ 2004-10-06 10:18 UTC (permalink / raw)
To: comp.lang.ada
matthias_k wrote:
> I can't find the specifics about the mysterious ' operator, which
> purpose seems to access certain attributes of a datatype.
It's not an operator, and there's nothing mysterious about it. It's just
the notation for attributes. All attributes are listed on the RM. Annex K.
If by "datatype" you mean type, note that other entities also have
attributes, e.g. objects, tasks.
> Furthermore, can I define my own '-operations?
No.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: What exactly is the ' operator
2004-10-06 10:18 ` Marius Amado Alves
@ 2004-10-06 10:33 ` matthias_k
2004-10-06 10:38 ` Marius Amado Alves
2004-10-06 10:40 ` stephane richard
2004-10-06 17:28 ` Martin Krischik
1 sibling, 2 replies; 9+ messages in thread
From: matthias_k @ 2004-10-06 10:33 UTC (permalink / raw)
Marius Amado Alves wrote:
> matthias_k wrote:
>
>> I can't find the specifics about the mysterious ' operator, which
>> purpose seems to access certain attributes of a datatype.
>
>
> It's not an operator, and there's nothing mysterious about it. It's just
> the notation for attributes. All attributes are listed on the RM. Annex K.
>
> If by "datatype" you mean type, note that other entities also have
> attributes, e.g. objects, tasks.
>
>> Furthermore, can I define my own '-operations?
>
>
> No.
>
Thanks. Does "it" have a name then? If it's not an operator, I can't
call it '-operator. I have to refer to it somehow in my article.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: What exactly is the ' operator
2004-10-06 10:33 ` matthias_k
@ 2004-10-06 10:38 ` Marius Amado Alves
2004-10-06 10:41 ` stephane richard
2004-10-06 17:58 ` Jeffrey Carter
2004-10-06 10:40 ` stephane richard
1 sibling, 2 replies; 9+ messages in thread
From: Marius Amado Alves @ 2004-10-06 10:38 UTC (permalink / raw)
To: comp.lang.ada
> Thanks. Does "it" have a name then?
Yes: tick.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: What exactly is the ' operator
2004-10-06 10:33 ` matthias_k
2004-10-06 10:38 ` Marius Amado Alves
@ 2004-10-06 10:40 ` stephane richard
1 sibling, 0 replies; 9+ messages in thread
From: stephane richard @ 2004-10-06 10:40 UTC (permalink / raw)
"matthias_k" <nospam@digitalraid.com> wrote in message
news:ck0hm6$3jg$01$1@news.t-online.com...
>
> Thanks. Does "it" have a name then? If it's not an operator, I can't call
> it '-operator. I have to refer to it somehow in my article.
Apostrophe ? ;-) sorry I just couldn't resist hehehe!
I'd like to know it's name if there is one actually, I've been wondering
about it too :-)
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: What exactly is the ' operator
2004-10-06 10:38 ` Marius Amado Alves
@ 2004-10-06 10:41 ` stephane richard
2004-10-06 17:58 ` Jeffrey Carter
1 sibling, 0 replies; 9+ messages in thread
From: stephane richard @ 2004-10-06 10:41 UTC (permalink / raw)
"Marius Amado Alves" <amado.alves@netcabo.pt> wrote in message
news:mailman.212.1097059129.390.comp.lang.ada@ada-france.org...
>> Thanks. Does "it" have a name then?
>
> Yes: tick.
>
I'll take that :-)...much shorter than my suggestion.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: What exactly is the ' operator
2004-10-06 10:18 ` Marius Amado Alves
2004-10-06 10:33 ` matthias_k
@ 2004-10-06 17:28 ` Martin Krischik
1 sibling, 0 replies; 9+ messages in thread
From: Martin Krischik @ 2004-10-06 17:28 UTC (permalink / raw)
Marius Amado Alves wrote:
> matthias_k wrote:
>> I can't find the specifics about the mysterious ' operator, which
>> purpose seems to access certain attributes of a datatype.
>
> It's not an operator, and there's nothing mysterious about it. It's just
> the notation for attributes. All attributes are listed on the RM. Annex K.
>
> If by "datatype" you mean type, note that other entities also have
> attributes, e.g. objects, tasks.
>
>> Furthermore, can I define my own '-operations?
>
> No.
But you can defined the value behind the tick:
For X'Size use 32; -- thats bit
OF corse not for all values.
With Regards
Martin
--
mailto://krischik@users.sourceforge.net
http://www.ada.krischik.com
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: What exactly is the ' operator
2004-10-06 10:38 ` Marius Amado Alves
2004-10-06 10:41 ` stephane richard
@ 2004-10-06 17:58 ` Jeffrey Carter
2004-10-06 20:51 ` Georg Bauhaus
1 sibling, 1 reply; 9+ messages in thread
From: Jeffrey Carter @ 2004-10-06 17:58 UTC (permalink / raw)
Marius Amado Alves wrote:
>> Thanks. Does "it" have a name then?
>
> Yes: tick.
"Tick" is how it's pronounced: X'Size is spoke as "X Tick Size".
"Attribute notation" is probably a good name. ARM 4.1.4 ("Attributes")
uses "attribute_reference"
attribute_reference ::= prefix'attribute_designator
The apostrophe is also used for character literals.
--
Jeff Carter
"Death awaits you all, with nasty, big, pointy teeth!"
Monty Python & the Holy Grail
20
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: What exactly is the ' operator
2004-10-06 17:58 ` Jeffrey Carter
@ 2004-10-06 20:51 ` Georg Bauhaus
0 siblings, 0 replies; 9+ messages in thread
From: Georg Bauhaus @ 2004-10-06 20:51 UTC (permalink / raw)
Jeffrey Carter <spam@spam.com> wrote:
: Marius Amado Alves wrote:
:
:>> Thanks. Does "it" have a name then?
:>
:> Yes: tick.
:
: "Tick" is how it's pronounced: X'Size is spoke as "X Tick Size".
I've also read that it can be read as a genitive :-)
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2004-10-06 20:51 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-06 9:40 What exactly is the ' operator matthias_k
2004-10-06 10:18 ` Marius Amado Alves
2004-10-06 10:33 ` matthias_k
2004-10-06 10:38 ` Marius Amado Alves
2004-10-06 10:41 ` stephane richard
2004-10-06 17:58 ` Jeffrey Carter
2004-10-06 20:51 ` Georg Bauhaus
2004-10-06 10:40 ` stephane richard
2004-10-06 17:28 ` Martin Krischik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox