
scope resolution oopparettar

computer prograamingil, moolyangalum padaprayogangalum bandhappettirikkunna oru ulkkollunna sandarbhamaanu vyaapthi. scope resolution oopparettar oru identifier paraamarsikkunna sandarbham thirichariyaanum vyakthamakkaanum sahayikkunnu, prathyekichu oru namespace allengil klaas vyakthamaakkunnathiloode. scopping enna aashayangalkkanusarich vividha prograaming bhashakalil nirddishta upayogangal vyathyaasappedunnu. pala bhaashakalilum, scope resolution oopparettar ennu parayunnath coce _ 1 ennaanu.
chila bhashakalil, prathyekichu modula-3 (paithanum goyum ulppede) swaadheenichava, moduleukal objectukalaanu, modyoolukalkullile scope resolution saadhaarana object memper aaksasinte oru prathyeka kesaanu, athinaal saadhaarana reethi oopparettar cocks _ 2 scope resolutionaayi upayogikkunnu. mattu bhashakalil, prathyekichu sii + +, rubie ennivayil, vividha reethikalil edapedunna scope resolution reethi axus undu; chuvadeyulla udaaharanagal kaanuka.
sii + +.
klaas eiii {
pothujanangal
 staatik int i;// a yude vyaapthi
namespace bii {
 int sii = 2;
} //namespace bii
int a:: i = 4;// scope oopparettar ennathu a classil prakhyaapicha poornnasankhya i yeei soochippikkunnu.
int x = b:: c;// scope oopparettar ennathu namespaceil bii ennu prakhyaapicha poornnasankhya c yeei soochippikkunnu.
piechpi.
piechpiyil, scope resolution oopparettare pamayim nekudottayam ennum vilikkunnu (,, randaamathe vaakk necoditimsinte samsaraparamaaya azhimathi), athaayath hebroovil "eratta vankudal" ennaanu ardham.
piechpi 3-ll upayogikkunna israeli vikasippicha send enchin 0.5-laanu "pamayim nekudottayam" enna peru avatharippichathu. hebru samsaarikkaatha pala davalapparmarkkum ithu aashayakkuzhappamundaakkiyum, eee sample pishak sandeshathilennapole ithu ippozhum piechpi 7-ll upayogikkunnu
$ piechpi-aarah
paazhs pishak vaakyaghadana pishak, apratheekshithamaya t _ pamayim _ nekudotayim
scope resolution oopparettar illaatha sthalathum samanamaaya pishak sambhavikkam. udaaharanathinu, oru sthiraangam shoonyamaano () ennu parisodhikkaan sramikkunnathu eee pishakin kaaranamaakunnu
$ piechpi-aarr 'nirvachikkuka ("phuu", "baar"); (shoonyamaaya (phuu)) prathidhvanichaal "shoonyamaaya";'
paazhs pishak vaakyaghadana pishak, apratheekshitha ')', t _ pamayim _ nekudotayim prathekshikkunnu
piechpi 5.4 prakaram, scope resolution opparettarekkurichulla pishak sandeshangalil ippozhum eee peru ulppedunnu, pakshe athinte ardham oru paridhivare vyakthamaakkiyittund
$ piechpi-aarah
paazhs pishak vaakyaghadana pishak, apratheekshitha ':' (t _ pamayim _ nekudotayim)
pishak undakkaan mattu vyakthamaaya vazhikalilla, udaaharanathinu thaazhepparayunna asaadhuvaaya piechpi expression upayogikkaan shramikkuka
$ piechpi-aarr staatik koonst '$a = 1'
paazhs pishak vaakyaghadana pishak, fayalinte apratheekshitha avasaanam, prathekshikkunnu (t _ pamayim _ nekudotayim)
rubie.
rubiyil, module keywade upayogichu scope resolution vyakthamaakkam.
module udaaharanam
 pathipp = 1
 klaas "svayam #njangal modyoolinte singleton klaas axus cheiyunnu
 def haloo (aaraan = "lokam")
 "haloo #{aaraan}"
 avasaanam
 avasaanam
avasaanam #/udaaharanam
udaaharanam haloo #=> "haloo waled"
udaaharanam.haloo "hacker" #=> "haloo hacker"
udaaharanam pathipp #=> 1
udaaharanam.pathipp #nomethoderer
variable perukalude aamukham nalkunna sigilukalum vyaapthiye badhikkunnu

