parameter vs argument
29 Message(s) by 14 Author(s) originally posted in java programmer
| From: Roedy Green |
Date: Thursday, October 25, 2007
|
| From: Daniel Dyer |
Date: Thursday, October 25, 2007
|
On Thu, 25 Oct 2007 16:38:31 +0100, Roedy Green
wrote in
message :
Has anyone run across an official definition of argument and parameter
for JAVA?
Not specifically for JAVA, but the only interpretation I have seen that
does not use the terms interchangeably is that an argument is a specific
instance of a parameter.
E.g, in the following example, the parameter for doSomething is anInteger
and the argument is 4.
public static void doSomething(int anInteger)
{
System.out.println("The argument was " + anInteger);
}
public static void main(String[] s)
{
doSomething(4);
}
Dan.
--
Daniel Dyer
http://www.uncommons.org
| From: Eric Sosman |
Date: Thursday, October 25, 2007
|
wrote in message On 10/25/07 11:38,:
Has anyone run across an official definition of argument and parameter
for JAVA?
JLS 8.4.1 defines "formal parameter" and refers to
"actual argument expressions" that supply the initial
values of the "parameter
variable s." This is consistent
with the practice in some other languages: The parameter
is the local variable in the method/function/subroutine/
procedure/lambda expression/whatever, and the argument
is the caller-supplied value/reference/thingy.
--
Eric.Sosman@xxxxxxxxxxx
| From: Roedy Green |
Date: Thursday, October 25, 2007
|
On Thu, 25 Oct 2007 12:29:06 -0400, Eric Sosman
<Eric.Sosman@xxxxxxxxxxx>
wrote in message, quoted or indirectly quoted someone who said :
JLS 8.4.1 defines "formal parameter" and refers to
"actual argument expressions" that supply the initial
values of the "parameter variables." This is consistent
with the practice in some other languages: The parameter
is the local variable in the method/function/subroutine/
procedure/lambda expression/whatever, and the argument
is the caller-supplied value/reference/thingy.
thanks. I have written new entries for
http://mindprod.com/jgloss/parameters.html
http://mindprod.com/jgloss/arguments.html
--
Roedy Green Canadian Mind Products
The JAVA Glossary
http://mindprod.com
| From: Wayne |
Date: Thursday, October 25, 2007
|
wrote in message:
On Thu, 25 Oct 2007 12:29:06 -0400, Eric Sosman <Eric.Sosman@xxxxxxxxxxx>
wrote in message, quoted or indirectly quoted someone who said :
JLS 8.4.1 defines "formal parameter" and refers to
"actual argument expressions" that supply the initial
values of the "parameter variables." This is consistent
with the practice in some other languages: The parameter
is the local variable in the method/function/subroutine/
procedure/lambda expression/whatever, and the argument
is the caller-supplied value/reference/thingy.
thanks. I have written new entries for
http://mindprod.com/jgloss/parameters.html
http://mindprod.com/jgloss/arguments.html
The terms are interchangeable. But I'm sure we could
have a long parameter on this subject.
-Wayne
| From: Andrew Thompson |
Date: Friday, October 26, 2007
|
| From: Mark Space |
Date: Friday, October 26, 2007
|
wrote in message:
wrote in message:
..
The terms are interchangeable. But I'm sure we could
have a long parameter on this subject.
(chuckle)
Yeah that was a good one. I was going to say that JAVA methods have
parameters and arguments are what we've here. ;-)
| From: Lew |
Date: Friday, October 26, 2007
|
wrote in message:
Yeah that was a good one. I was going to say that JAVA methods have
parameters and arguments are what we've here. ;-)
Must ... not ... quote ... Monty
Python ... ... must ... resist . . . .
--
Lew
| From: Andreas Leitgeb |
Date: Friday, October 26, 2007
|
wrote in message:
wrote in message:
Yeah that was a good one. I was going to say that JAVA methods have
parameters and arguments are what we've here. ;-)
Must ... not ... quote ... Monty Python ... ... must ... resist . . . .
no!
| From: Andrew Thompson |
Date: Friday, October 26, 2007
|
wrote in message:
Yeah that was a good one. I was going to say that JAVA methods have
parameters and arguments are what we've here. ;-)
Must ... not ... quote ... Monty Python ... ... must ... resist . . . .
I hate to admit this, but I am not entirely sure of the
Monty Python quote you are referring to, and I'm burning
with curiosity.
The only sketch I can think of that comes close, is the
'I want an argument' sketch.
<poorly paraphrased MP>
"Oh, I'm sorry, ..you wanted an argument? This is 'abuse'."
</poorly paraphrased MP>
--
Andrew Thompson
http://www.athompson.info/andrew/
Message posted via
http://www.JAVAkb.com
| From: Lew |
Date: Friday, October 26, 2007
|
wrote in message:
The only sketch I can think of that comes close, is the
'I want an argument' sketch.
You get the gold star. That is the one that fits the parameters.
--
Lew
| From: Roedy Green |
Date: Friday, October 26, 2007
|
wrote in message,
quoted or indirectly quoted someone who said :
You get the gold star. That is the one that fits the parameters.
Who can quote the
line from Star Trek?
--
Roedy Green Canadian Mind Products
The JAVA Glossary
http://mindprod.com
| From: Andrew Thompson |
Date: Friday, October 26, 2007
|
wrote in message:
The only sketch I can think of that comes close, is the
'I want an argument' sketch.
You get the gold star.
Thanks! That is much more
validation than any ..
<dws>Google
group s 'rating'
</dws>.
But I am surprised that ..an *American* * would've
such arcane
knowledge of Monty Python! It is good
to post to these international newsgroups, if only to
dispell such 'colloquial myths'!
* My apologies for my amazement, but I thought Monty
Python's appeal was limited to those
English speaking
countries that were 'not America'. I had suspected the
MP
humor to be 'beyond them' ( thank you for pointing
out the - ..naivety of my ways ;).
--
Andrew Thompson
http://www.athompson.info/andrew/
Message posted via JAVAKB.com
http://www.JAVAkb.com/Uwe/Forums.aspx/JAVA-general/200710/1
| From: Andrew Thompson |
Date: Friday, October 26, 2007
|
wrote in message:
You get the gold star. That is the one that fits the parameters.
Who can quote the line from Star Trek?
Who cares? (I always hated Star Trek, such dweebie
"let's all get in touch with our inner feelings" crap that I
hoped the Klingons/Borg/'WhoCares?''d wipe the lot
of them out - they didn't deserve to infest the universe
with 'Federation Dweebies').
--
Andrew Thompson
http://www.athompson.info/andrew/
Message posted via
http://www.JAVAkb.com
| From: Lasse Reichstein Nielsen |
Date: Friday, October 26, 2007
|
Roedy Green
<see_website@xxxxxxxxxxx> writes:
wrote in message,
quoted or indirectly quoted someone who said :
You get the gold star. That is the one that fits the parameters.
Who can quote the line from Star Trek?
Beyond "Beam me up, Scotty", "Make it so", "Open hailing frequencies"
and "Fire photon torpedos"? :)
/L '*sing* We come in peace, shoot to kill, shoot to kill! *sing*'
--
Lasse Reichstein Nielsen - lrn@xxxxxxxxxxx
DHTML Death Colors:
<URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
| From: Daniel Pitts |
Date: Friday, October 26, 2007
|
wrote in message:
wrote in message:
The only sketch I can think of that comes close, is the
'I want an argument' sketch.
You get the gold star.
Thanks! That is much more validation than any ..
<dws>Google groups 'rating'
</dws>.
But I am surprised that ..an *American* * would've
such arcane knowledge of Monty Python! It is good
to post to these international newsgroups, if only to
dispell such 'colloquial myths'!
* My apologies for my amazement, but I thought Monty
Python's appeal was limited to those English speaking
countries that were 'not America'. I had suspected the
MP humor to be 'beyond them' ( thank you for pointing
out the - ..naivety of my ways ;).
Monty Python is quite popular here actually. Although it does kind of
have a niche following. Some might even say that social misfits enjoy
MP more than the rest. Personally, that either makes them wrong or me a
social misfit (or both, possibly).
--
Daniel Pitts' Tech Blog:
<http://virtualinfinity.net/wordpress/>
| From: Daniel Pitts |
Date: Friday, October 26, 2007
|
wrote in message:
wrote in message:
You get the gold star. That is the one that fits the parameters.
Who can quote the line from Star Trek?
Who cares? (I always hated Star Trek, such dweebie
"let's all get in touch with our inner feelings" crap that I
hoped the Klingons/Borg/'WhoCares?''d wipe the lot
of them out - they didn't deserve to infest the universe
with 'Federation Dweebies').
You must be thinking of Star Trek: TNG. The original star trek was all
about beating up aliens and wooing the girl.--
Daniel Pitts' Tech Blog:
<http://virtualinfinity.net/wordpress/>
| From: John W. Kennedy |
Date: Friday, October 26, 2007
|
wrote in message:
wrote in message:
The only sketch I can think of that comes close, is the
'I want an argument' sketch.
You get the gold star.
Thanks! That is much more validation than any ..
<dws>Google groups 'rating'
</dws>.
But I am surprised that ..an *American* * would've
such arcane knowledge of Monty Python! It is good
to post to these international newsgroups, if only to
dispell such 'colloquial myths'!
* My apologies for my amazement, but I thought Monty
Python's appeal was limited to those English speaking
countries that were 'not America'. I had suspected the
MP humor to be 'beyond them' ( thank you for pointing
out the - ..naivety of my ways ;).
> feed bird
It's not hungry (It's merely pinin' for the Fjords). Besides You
have no bird seed.
-- Crowther and Woods: "Adventure", alias "Colossal Cave" > read label
!!!! FROBOZZ
MAGIC BOAT COMPANY !!!!
Hello, Sailor!
Instructions for use:
To get into boat, say 'Board'
To leave boat, say 'Disembark'
To get into a body of water, say 'Launch'
To get to shore, say 'Land'
Warranty:
This boat is guaranteed against all defects in parts and
workmanship for a period of 76 milliseconds from
date of purchase or
until first used, whichever comes first.
Warning:
This boat is made of plastic. Good Luck!
--
MIT "Zork" > read book
Oh ye who go about saying unto each: "Hello sailor":
dost thou know the magnitude of thy sin before the gods?
Yea, verily, thou shalt be ground between two stones.
Shall the angry gods cast thy body into the whirlpool?
Surely, thy eye shall be put out with a
sharp stick!
Even unto the ends of the earth shalt thou wander and
unto the land of the
dead shalt thou be sent at last.
Surely thou shalt repent of thy cunning.
-- MIT "Zork"
--
John W. Kennedy
"But now is a new thing which is very old--
that the rich make themselves richer and not poorer,
which is the true Gospel, for the poor's sake."
-- Charles Williams. "Judgement at Chelmsford"
| From: Travis James |
Date: Friday, October 26, 2007
|
wrote in message:
* My apologies for my amazement, but I thought Monty
Python's appeal was limited to those English speaking
countries that were 'not America'. I had suspected the
MP humor to be 'beyond them' ( thank you for pointing
out the - ..naivety of my ways ;).
I had never thought about how a Brit might think Americans take Monty
Python. It's not at all uncommon at a gathering/cocktail party for a
group of men (never women that I have seen) take some topic and twist it
into some MP skit or movie scene.
MP fans I know seem to cut their teeth on Holy Grail or Meaning of Life
before fully appreciating Life of Brian or episodes of MP's Flying
Circus. (Never saw Jabberwocky.)
-- TJ (Californian)
| From: Lew |
Date: Friday, October 26, 2007
|
wrote in message:
wrote in message:
* My apologies for my amazement, but I thought Monty
Python's appeal was limited to those English speaking
countries that were 'not America'. I had suspected the MP humor to be
'beyond them' ( thank you for pointing out the - ..naivety of my ways ;).
I had never thought about how a Brit might think Americans take Monty
Python. It's not at all uncommon at a gathering/cocktail party for a
group of men (never women that I have seen) take some topic and twist it
into some MP skit or movie scene.
MP fans I know seem to cut their teeth on Holy Grail or Meaning of Life
before fully appreciating Life of Brian or episodes of MP's Flying
Circus. (Never saw Jabberwocky.)
I remember how impressed I was that /Matching Tie and Handkerchief/ was a
3-sided LP pressed
onto a single
disc of vinyl.
--
Lew
| From: John W. Kennedy |
Date: Friday, October 26, 2007
|
wrote in message:
wrote in message:
* My apologies for my amazement, but I thought Monty
Python's appeal was limited to those English speaking
countries that were 'not America'. I had suspected the MP humor to be
'beyond them' ( thank you for pointing out the - ..naivety of my ways ;).
I had never thought about how a Brit might think Americans take Monty
Python. It's not at all uncommon at a gathering/cocktail party for a
group of men (never women that I have seen) take some topic and twist it
into some MP skit or movie scene.
MP fans I know seem to cut their teeth on Holy Grail or Meaning of Life
before fully appreciating Life of Brian or episodes of MP's Flying
Circus. (Never saw Jabberwocky.)
Anyway, "Monty Python" is too easy. I know people, fellow Yanks, who can
jump straight into "The Frog and Peach", taking either side.
Some of us can even do, "Eccles, what time is it?"
--
John W. Kennedy
A proud member of the reality-based community.
| From: John W. Kennedy |
Date: Friday, October 26, 2007
|
wrote in message:
I remember how impressed I was that /Matching Tie and Handkerchief/ was
a 3-sided LP pressed onto a single disc of vinyl.
We had a 12-sided LP by Henny Youngman when I was a kid. Six sides were
a horse race and the other six sides were a car race. You could bet on it.
--
John W. Kennedy
"The pathetic hope that the White House will turn a Caligula into a
Marcus Aurelius is as naïve as the fear that ultimate power inevitably
corrupts."
-- James D. Barber (1930-2004)
| From: Sherman Pendley |
Date: Friday, October 26, 2007
|
"Andrew Thompson"
<u32984@xxxxxxxxxxx> writes:
But I am surprised that ..an *American* * would've
such arcane knowledge of Monty Python!
Back in the 70s, the PBS here in the US used to rebroadcast several hours
of
BBC programming each week. Even living on a
farm in the sticks, I still
got to see Monty Python, Doctor Who, The Prisoner, Hitch Hiker's Guide to
the
Galaxy (TV & radio versions), and others.
sherm--
--
Web Hosting by West Virginians, for West Virginians:
http://wv-www.net
Cocoa programming in Perl:
http://camelbones.sourceforge.net
| From: Roedy Green |
Date: Friday, October 26, 2007
|
On Fri, 26 Oct 2007 19:00:04 -0400, Sherman Pendley
wrote in message, quoted or indirectly quoted someone who
said :
Back in the 70s, the PBS here in the US used to rebroadcast several hours
of BBC programming each week. Even living on a farm in the sticks, I still
got to see Monty Python, Doctor Who, The Prisoner, Hitch Hiker's Guide to
the Galaxy (TV & radio versions), and others.
A guy
named Sandy Middleton lived in our house back in the 70s. He
claimed he did some writing for the Pythons. He kept me howling with
his practical jokes.
We did a series of Pythonesque sketches about gay lib and put them on
industrial strength telephone answering
machine than ran night and day
solidly.
--
Roedy Green Canadian Mind Products
The JAVA Glossary
http://mindprod.com
| From: Andrew Thompson |
Date: Friday, October 26, 2007
|
wrote in message:
* My apologies for my amazement, but I thought Monty
Python's appeal was limited to those English speaking
countries that were 'not America'. I had suspected the
MP humor to be 'beyond them' ( thank you for pointing
out the - ..naivety of my ways ;).
I had never thought about how a Brit might think Americans take Monty
Python. ...
Keep thinking. I'm an 'Aussie'. ;-)
And in response to the
comment by another person to the
effect that MP fans are considered slightly 'off-beat' in
America - I can confirm the same is true in Australia, at
the very least.
--
Andrew Thompson
http://www.athompson.info/andrew/
Message posted via
http://www.JAVAkb.com
| From: Wildemar Wildenburger |
Date: Friday, October 26, 2007
|
wrote in message:
Who can quote the line from Star Trek?
Beyond "Beam me up, Scotty"
Not a Star Trek quote.
/W
| From: Lew |
Date: Friday, October 26, 2007
|
wrote in message:
wrote in message:
Who can quote the line from Star Trek?
Beyond "Beam me up, Scotty"
Not a Star Trek quote.
Probably the most common /Star Trek/ misquote, and one of the more common
misquotes out there. As a misquote, it's up there with "Play it again, Sam,"
not actually from /Casablanca/.
--
Lew
| From: Eric Sosman |
Date: Friday, October 26, 2007
|
wrote in message:
wrote in message:
The only sketch I can think of that comes close, is the
'I want an argument' sketch.
You get the gold star.
Thanks! That is much more validation than any ..
<dws>Google groups 'rating'
</dws>.
But I am surprised that ..an *American* * would've
such arcane knowledge of Monty Python! It is good
to post to these international newsgroups, if only to
dispell such 'colloquial myths'!
* My apologies for my amazement, but I thought Monty
Python's appeal was limited to those English speaking
countries that were 'not America'. I had suspected the
MP humor to be 'beyond them' ( thank you for pointing
out the - ..naivety of my ways ;).
Monty Python is in fact beyond the grasp of Americans.
But our fingernails scrape up a little of the varnish as
we grasp desperately for the prize just out of our reach,
and the gunk under our nails is so much more entertaining
than any local
product that we think we have seen the joke.
Spam (ha-ha!) Spam (hee-hee!) Spam (ho-ho-ho!) Spam
(Why do I feel hungry?) Fish-slapping dance? (Hunh? Oh,
right: The
fish is made of Spam! Hahahahahaha!)
--
Eric Sosman
esosman@xxxxxxxxxxx
| From: Eric Sosman |
Date: Friday, October 26, 2007
|
wrote in message:
wrote in message:
wrote in message:
* My apologies for my amazement, but I thought Monty
Python's appeal was limited to those English speaking
countries that were 'not America'. I had suspected the MP humor to be
'beyond them' ( thank you for pointing out the - ..naivety of my ways
;).
I had never thought about how a Brit might think Americans take Monty
Python. It's not at all uncommon at a gathering/cocktail party for a
group of men (never women that I have seen) take some topic and twist it
into some MP skit or movie scene.
MP fans I know seem to cut their teeth on Holy Grail or Meaning of
Life before fully appreciating Life of Brian or episodes of MP's
Flying Circus. (Never saw Jabberwocky.)
Anyway, "Monty Python" is too easy. I know people, fellow Yanks, who can
jump straight into "The Frog and Peach", taking either side.
Some of us can even do, "Eccles, what time is it?"
... and here is a photograph of me saying it. Ying-tong
iddle-eye-poh!
--
Eric Sosman
esosman@xxxxxxxxxxx
Next Message: JTree and those small Icons ahead folder, file etc icons.
Blogs related to parameter vs argument
window onload event javascript
... java script window open in javascript window open internet explorer error window open invalid
argument window open
java window open
java script window open javascript window open javascript options window open javascript
parameters ...
user account wrong number of argument
user control
parameter user control
parameters user control parent user control postback user control properties user control properties asp.net user control properties c user control property user control property asp.net
...
linux irq problems
... book linux kernel books linux kernel boot linux kernel boot
arguments linux kernel boot disk linux kernel boot option linux kernel boot options linux kernel boot options vga linux kernel boot
parameter linux kernel boot
parameters ...
Say I have a PHP function that accepts a string argument I want to ...
the optional fifth
parameter to mail() will let you do that ($additional_parameters)… if you're using sendmail on the backend look into the -f option. i think is phpsessid. it's a class library (hint). because diferent browsers can open
...
user account wrong number of argument
user account wrong number of
argument user account wrong number of
arguments user accounting user accounts user accounts 2 user accounts 2 windows xp user accounts 2000 user accounts administrator user accounts and groups user accounts
...
hi debian folks java i have debian sarge on a vserver and syslog ...
parameters maybe? abrotman: okay. Hello, I’m wondering what repositories are safe to add to Etch for non-free multimedia codecs ? since when? 3 mins ago? I was just on it. the debian-multimedia ones should be fine !marillat
...