then n gets set to the value of _emp.name.
_emp.name would have been defined in an outer scope.
The method essentialy would be used to get or set the EmplName.
ie. name("Thomas) would return "Thomas"
once the above was called,
name() would also return "Thomas"
I believe.......
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] Behalf Of Thomas
Sent: Tuesday, 26 July 2005 11:09 PM
To: [email protected]
Subject: [development-axapta] Can anybody explain me this syntax
Hello,
I am used to programming Java and C#. But for some reason I have
problems understanding this syntax:
EmplName name(EmplName n = _emp.name)
{
_emp.name = n;
return n;
}
I understand the following:
the method name returns an EmplName. when calling the method you do it
with a parameter n of the type EmplName. But what dows the n =
_emp.name do? and what goes on in the method body?
SPONSORED LINKS
Computer <http://groups.yahoo.com/gads?t=ms&k=Computer+part&w1=Computer+part&w2=Programming+languages&w3=Microsoft+axapta&w4=Support+exchange&c=4&s=90&.sig=yLpvcLTIDJ5FTkRJGsO11w> part Programming <http://groups.yahoo.com/gads?t=ms&k=Programming+languages&w1=Computer+part&w2=Programming+languages&w3=Microsoft+axapta&w4=Support+exchange&c=4&s=90&.sig=cuhEClK4dU4wapXFmKisbQ> languages Microsoft <http://groups.yahoo.com/gads?t=ms&k=Microsoft+axapta&w1=Computer+part&w2=Programming+languages&w3=Microsoft+axapta&w4=Support+exchange&c=4&s=90&.sig=yfeG_U6QaLfPOZZIud02Fg> axapta
Support <http://groups.yahoo.com/gads?t=ms&k=Support+exchange&w1=Computer+part&w2=Programming+languages&w3=Microsoft+axapta&w4=Support+exchange&c=4&s=90&.sig=hy8yRGMzrmxdphyITTUeqA> exchange
_____
YAHOO! GROUPS LINKS
* Visit your group " development-axapta <http://groups.yahoo.com/group/development-axapta> " on the web.
* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
* Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service <http://docs.yahoo.com/info/terms/> .
_____
[Non-text portions of this message have been removed]
SPONSORED LINKS
| Computer part | Programming languages | Microsoft axapta |
| Support exchange |
YAHOO! GROUPS LINKS
- Visit your group "development-axapta" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

