Q: What are the caste operators in C++? With examples, explain the different caste operators. (10 marks) [VTU CS321 May 2009]
A: The caste operators are used to change the caste of a person.The four different caste operators in C++ are explained below.
a) static_caste static_caste operator is used to change the caste of a person for a long period of time. Note that the effects of this operator are permanent. Eg: Ramaswamy Krishnamachari Iyyer comes from an ultra-orthodox brahmin family from T-nagar, Chennai. After writing IIT exam three times and not getting through, RKI bribes the Tahsildar to produce a caste certificate pronouncing him a scheduled caste person. He then goes to IIT, then IIM and finally becomes a Big Shot. Later when he finds that he is no longer allowed into Guruvayur temple, he drowns his sorrow in Beluga Caviar and Dom Perignon.
b) dynamic_caste dynamic_caste operator changes the caste of a person for a short period. While the benefit of using this is less than that of static_caste, there are no long term effects. Eg: Ramaswamy Krishnamachari Iyyer has an unholy liking for mutton biriyani, but his amma carefully audits his spending. He buys a cap, goes to some arbit muslim wedding, says random phrases like "khuda haafiz", "wah wah" and "mubaarak" to everyone, and gorges on mutton and chicken. He then goes to Guruvayur temple for dessert (their prasadam is delicious).
c) reinterpret_caste reinterpret_caste doesn't change the caste, but changes the way the rules of the caste are implemented. Eg: When confronted with a bucketful of chicken, Ramaswamy Krishnamachari Iyyer recites from Skandapurana 11:38 "Thou shalt eat meat and all shall be happy". While his mother and granny debate whether Skandapurana comes above Ishopanishad, Rama gorges on the chicken.
d) const_caste const_caste is used to remove the orthodoxy from the caste. Eg: Centuries ago, konkani brahmins used to be as orthodox as Tamil ones, but over time succumbed to the temptation of fried fish and fenni. A konkani brahmin youth of today can be identified by the joint in his right band, a beer bottle in his left hand and a slutty girl on his lap.
You have undoubtedly clicked on this link by mistake. To preserve your sanity and general well-being, LEAVE THIS SITE AT ONCE! If you are still reading this, you either don't understand English very well, or you are so past the boundaries of sanity that any further insanification is of no concern.