Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

parsing - Why does C++ not allow user-defined operators? -


i've been wondering quite time. there whole bunch of them , can overloaded, why not end , allow custom operators? think great addition.

i've been told make language hard compile. makes me wonder, c++ cannot designed easy compilation anyway, undoable? of course, if use lr parser static table , grammar such

e → t + e | t t → f * t | f f → id | '(' e ')' 

it wouldn't work. in prolog, parsed operator-precedence parser afaik, new operators can defined, language simpler. now, grammar rewritten accept identifiers in every place operator hard-coded grammar.

what other solutions , parser schemes there , other things have influenced design decision?

http://www2.research.att.com/~bs/bs_faq2.html#overload-operator

the possibility has been considered several times, each time i/we decided problems outweighed benefits.

it's not language-technical problem. when first considerd in 1983, knew how implemented. however, experience has been when go beyond trivial examples people seem have subtlely different opinions of "the obvious" meaning of uses of operator. classical example a**b**c. assume ** has been made mean exponentiation. should a**b**c mean (a**b)**c or a**(b**c)? thought answer obvious , friends agreed - , found didn't agree on resolution obvious one. conjecture such problems lead subtle bugs.


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -