<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Gem #40: Safe and Secure Software : Chapter 5, Safe Object Oriented Programming</title>
	<atom:link href="http://www2.adacore.com/2008/06/16/gem-40/feed/" rel="self" type="application/rss+xml" />
	<link>http://www2.adacore.com/2008/06/16/gem-40/</link>
	<description>AdaCore technology and news</description>
	<lastBuildDate>Mon, 06 Feb 2012 18:59:19 +0100</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: John Barnes</title>
		<link>http://www2.adacore.com/2008/06/16/gem-40/comment-page-1/#comment-1639</link>
		<dc:creator>John Barnes</dc:creator>
		<pubDate>Sat, 28 Jun 2008 10:01:59 +0000</pubDate>
		<guid isPermaLink="false">http://www2.adacore.com/2008/06/16/gem-40/#comment-1639</guid>
		<description>I must thank Raoul Duke for his comments. It is always hard to know how much to assume for the background knowledge of the reader. I should have said that X and Y were the coordinates of the centre (or center) of the object. Interestingly enough I used this example in Programming in Ada 95 and similarly it does not say that and nobody ever commented before.

So I should add something for clarification. Of course X and Y do not feature much in  the individual properties of an object because most properties are independent of position. It is only when we come to move objects or compare them or consider the distance between them that the values of X and Y matter.

Yes, it is the centre as defined in elemntary geometry and in the case of the ellipse X**2/a**2 + Y**2/b**2 = 1, the center is at (0, 0). Think of it as the centre of gravity of a lamina for irreglar objects.

The mind boggles at more that two sexes but Programming in Ada does contemplate a type Neuter at one point!

By the way I find it irritating the way the world is using the word gender to mean sex. Strictly speaking Gender is (or was) a linguistic term and has nothing to do with sex. Thus in French a table has neuter sex but feminine gender.

And it is nice to think of it in terms of names or access types. My name John as a pointer has gender masculine but I (John) as a person has sex male.

Enough of this.

John</description>
		<content:encoded><![CDATA[<p>I must thank Raoul Duke for his comments. It is always hard to know how much to assume for the background knowledge of the reader. I should have said that X and Y were the coordinates of the centre (or center) of the object. Interestingly enough I used this example in Programming in Ada 95 and similarly it does not say that and nobody ever commented before.</p>
<p>So I should add something for clarification. Of course X and Y do not feature much in  the individual properties of an object because most properties are independent of position. It is only when we come to move objects or compare them or consider the distance between them that the values of X and Y matter.</p>
<p>Yes, it is the centre as defined in elemntary geometry and in the case of the ellipse X**2/a**2 + Y**2/b**2 = 1, the center is at (0, 0). Think of it as the centre of gravity of a lamina for irreglar objects.</p>
<p>The mind boggles at more that two sexes but Programming in Ada does contemplate a type Neuter at one point!</p>
<p>By the way I find it irritating the way the world is using the word gender to mean sex. Strictly speaking Gender is (or was) a linguistic term and has nothing to do with sex. Thus in French a table has neuter sex but feminine gender.</p>
<p>And it is nice to think of it in terms of names or access types. My name John as a pointer has gender masculine but I (John) as a person has sex male.</p>
<p>Enough of this.</p>
<p>John</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raoul Duke</title>
		<link>http://www2.adacore.com/2008/06/16/gem-40/comment-page-1/#comment-1624</link>
		<dc:creator>Raoul Duke</dc:creator>
		<pubDate>Tue, 24 Jun 2008 22:14:02 +0000</pubDate>
		<guid isPermaLink="false">http://www2.adacore.com/2008/06/16/gem-40/#comment-1624</guid>
		<description>P.S. since I&#039;m now in an entirely too pedantic frame of mind, I will also note that there are people in the world who might take issue with the claim that the only genders are Male and Female. ;-) More things in heaven and earth, Horatio, than are dreamt of in your philosophy, etc.</description>
		<content:encoded><![CDATA[<p>P.S. since I&#8217;m now in an entirely too pedantic frame of mind, I will also note that there are people in the world who might take issue with the claim that the only genders are Male and Female. ;-) More things in heaven and earth, Horatio, than are dreamt of in your philosophy, etc.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raoul Duke</title>
		<link>http://www2.adacore.com/2008/06/16/gem-40/comment-page-1/#comment-1623</link>
		<dc:creator>Raoul Duke</dc:creator>
		<pubDate>Tue, 24 Jun 2008 22:07:20 +0000</pubDate>
		<guid isPermaLink="false">http://www2.adacore.com/2008/06/16/gem-40/#comment-1623</guid>
		<description>These chapters are much appreciated food for thought, thanks for making them available.

I question the OOP geometric figure example as being useful: I dare say it does more harm than good in that it leaves several issues unresolved. What are the (X,Y) of the base class meant to actually represent? In fact, I didn&#039;t notice X,Y ever being used in any of the functions in the beginning, making them seem wholly lacking proper motivation. It is not clearly specified what they are for. Perhaps for a Circle or a Rectangle one could make an educated guess that they are the &#039;center&#039;. However, what then would we do for an Ellipse? Would it be the center of mass rather an a focus?

So I found it all rather confusing and misleading. Please, we have enough bad examples of OO in the world :-(

yours sincerely, in the hopes of improving discourse.</description>
		<content:encoded><![CDATA[<p>These chapters are much appreciated food for thought, thanks for making them available.</p>
<p>I question the OOP geometric figure example as being useful: I dare say it does more harm than good in that it leaves several issues unresolved. What are the (X,Y) of the base class meant to actually represent? In fact, I didn&#8217;t notice X,Y ever being used in any of the functions in the beginning, making them seem wholly lacking proper motivation. It is not clearly specified what they are for. Perhaps for a Circle or a Rectangle one could make an educated guess that they are the &#8216;center&#8217;. However, what then would we do for an Ellipse? Would it be the center of mass rather an a focus?</p>
<p>So I found it all rather confusing and misleading. Please, we have enough bad examples of OO in the world :-(</p>
<p>yours sincerely, in the hopes of improving discourse.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

