[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: :: and .

joey eisma

11/7/2007 9:01:00 PM

Note: parts of this message were removed by the gateway to make it a legal Usenet post.

thx everyone for the reply. for the fine examples (some i don't quite understand yet..) as i'm still in the very early stages yet..

can i assume that it's simplier to use . than :: for references to methods?

thanks!


----- Original Message ----
From: Alex Young <alex@blackkettle.org>
To: ruby-talk ML <ruby-talk@ruby-lang.org>
Sent: Wednesday, November 7, 2007 10:13:01 AM
Subject: Re: :: and .

joey eisma wrote:
> hi!
>
> reading through some tutorial, i noticed the author would interchange using :: and . to call methods. i see they both give the same result.
>
> i was wondering if there is any other difference between the two? (other than convenience maybe?). when would you use one over the other?
>
In addition to the other answers, there's one place that you can only
use '::' rather than '.', and that's when you're specifying that your
constant should be searched for in the root namespace:

Bar = 42
module Foo
Bar = 23
def Foo.show
p ::Bar
p Bar
end
end

Foo.show outputs:
42
23

--
Alex

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail...
2 Answers

Jesse Edelstein

11/7/2007 10:47:00 PM

0

On Nov 7, 2007 3:01 PM, joey eisma <joey_eisma@yahoo.com> wrote:
> thx everyone for the reply. for the fine examples (some i don't quite understand yet..) as i'm still in the very early stages yet..
>
> can i assume that it's simplier to use . than :: for references to methods?
>
> thanks!
>

Yep. Seems like bad form to me to use :: for no real reason.

Daniel Ruth-Exposed

2/28/2012 11:51:00 AM

0

The swastika is ancient AND was used to represent two SS
representing socialism under German national socialism. German
national socialists did not call their symbol a swastika, and you are
inartfully evading the point. You simply evade the point when you
rehash the history of the swastika: Swastikas have been found on Han
dynasty artifacts (c2nd century BCE); amongst Iron Age Indo-Iranians,
Celts,
Greeks and Slavs; at Harappa and Mohenjo-Daro (2600 BCE); in
neolithic
China and pre-Columbian North America; on Samarran Culture pottery
(5500–4800 BCE); on a bird figurine, carved from mammoth ivory, found
near Kiev (c10,000 BCE), and is still used as a symbol of
auspiciousness in Hinduism, Jainism, and Buddhism.

Edward Bellamy's Looking Backward, 2000-1887, was an early science
fiction novel, which Bellamy descibed as a "a literary fantasy, a
fairy tale of social felicity" in which he touted military socialism
and via which he promoted marxism also, the same dogma that killed
millions globally. You evade the points made.

Francis Bellamy, a Baptist minister and Christian Socialist, was
hired
by the Youth's Companion magazine to work on the magazine's
subscription campaign, which involved selling American flags to
schools to solicit subscriptions and to promote socialism and
socialism in schools, and a government takeover of education for
socialism (you simply evade the points made). Under Bellamy's
influence, the
Youth's Companion became a fervent supporter of the schoolhouse flag
movement, which aimed to place a flag above every school in America in
order to promote a government takeover of education, to spread
socialism.
In 1892, the magazine used the 400th anniversary of Columbus's
landing
to bolster the schoolhouse flag movement and sell more flags to
promote a government takeover of education and to promote socialism
(you really are a liar. you know the truth and you can't stand it can
you?). The Youth Companion published Bellamy's pledge in September
1892. Bellamy was then chair of the movement, and designed an official
program for
schools for the national celebration, and that celebration, which
dsharavi has never read and never will, promoted a government takeover
of education and socialism, as well as hymns, prayers and various
references to religion including the phrase "under God." The original
pledge, a small part of the larger program, accompanied by the Bellamy
salute, read:


"I pledge allegiance to my Flag and the Republic for which it stands,
one nation, indivisible, with liberty and justice for all".


The salute was NOT replaced by the hand-over-heart salute during World
War
II, although there were some congressman who wanted to replace it,
everyone did not immediately follow the lead. The pledge salute did
NOT merely resembl the Nazi Hitler salute, it was often performed in
the exact manner and it was the origin of the nazi salute. dsharavi
knows this and he has seen the photos and video of American children
performing the nazi salute exactly. dsharavi is a liar who evades,
inartfully.

"Under God" was added in 1954 in response to secular socialism/
communism and also because some people thought it was consistent with
the fact that Bellamy was a self-proclaimed christian (a christian
socialist) and had various religious references in his original pledge
program, including "under God."

IOW, the Pledge was written by Baptist minister and Christian
Socialist as part of an ad campaign to sell flags, IN ORDER to promote
socialism. No different than when socialists today sell things (e.g.
books, such as Edward Bellamy's book) in order to promote socialism.


The so-called "Nazi salute" was NOT the so-called "Roman salute",
which itself was NOT invented by French neoclassic artists and early
filmmakers. The earliest instance of it was NOT the Oath of the
Horatii in
1784 and dsharavi knows that the artist never used the term roman
salute in any language and that the concept did not exist until the
1920's as the Oxford English Dictionary shows; dsharavi knows that
Francis Bellamy also never used the term "roman salute" and that his
the nazi gesture occurred because bellamy began the pledge with a
military salute that was then extended out toward the flag. dsharavi
is another sad victim of wakipedia. other French neoclassic artists
did NOT begin dipicting the "Roman Salute" a dsharavi knows that. The
gesture found its way into 19th century plays and early 20th
century films after the Pledge of Allegiance, which was written by
Francis Bellamy, who was from Rome NY, not Rome, Italy. An ultra-
socialist Italian filmmaker portrayed the salute in a 1914 film from
American films which had shown the American pledge salute. From its
origins in the USA's pledge it was adopted by the Italian Fascist
Party. Hitler also adopted it from the USA via the Harvard grad Ernst
Hanfstaengl, and then by the Nazi party (1923).