Re: Issue of the week
- Posted by Hawke <mdeland at NWINFO.NET> Oct 06, 1998
- 567 views
Carl R. White wrote: > Maybe we ought to rename this thread "The Cyrek and Hawke Show" > or something :) if noone else needed a refresher/coaching/instruction on overloading or redefining, and noone found this to be interesting or intriguing in any way, then oopsie! apologies for wasting ever so crucial bandwidth. > Any clearer, or should we move to one-on-one e-mail? yeah, actually it is... the more i tinker with euphoria, the more i see how truly elegant this creation of rob's is. killer handling of recursion (how many languages do you know of that can handle a stack limited by only available RAM/HD space???) and now i'm introduced to this neat new toy. i don't know that i would have ever found myself needing this toy, since i never really program in this fashion, and thusly don't really _think_ in that fashion as i'm flowcharting. now that i know this toy exists, i'm thinking of more and more ways that it could have made certain coding chores... practically trivial actually. example: this new thread on value()... i can see overloading and/or redefining as coming in real handy at this point. function oldvalue(object x) --how does this work again??? return value(x) --is that right? end function function value(object x) if find('*',x) then --multiply elsif find('+',x) then --addition --blahblah, subtraction, division, power(^), etc else return oldvalue(x) --it's just a normal value() call end function would the above be right as a potential pseudocode prototype of what [whoever] was asking for??? --Hawke'