@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6 7 8 9 10 11 12



Comments:

<0> e.g. this is a compile time error?
<1> compile time
<0> got an example?
<1> i'm coding a Vector library
<1> and i wrote a Tensor base cl*** that implements matrix multiplication via overloaded *
<2> w00t
<2> DLS in 2 days
<3> wot's DLS
<2> daylight savings
<2> starts sunday 2 am
<1> Vector inherits from Tensor, and also implements * but for a special Vector x Vector cross products
<3> ****
<3> ****hsithishtiihthi
<2> wish they kept it year round
<0> I am rather certain that I have seen subcl***es deriive similar functions (only parameters differ), but I am not sure.
<2> **** people in the morning



<1> but i'd like my function to fall back to its pure Tensor mode of multiplcation when u do Vector x Tensor
<3> put using Base::f; in your derived cl***'s interface
<3> I hate this time of the year
<3> I lose an hour which I would've wasted anyway :-\
<2> in the year 9000, DST begins on my birthday w00t
<3> haha fool
<2> granted, this calculator is only valid until 2099, and with change of laws and what not
<3> wait
<3> didn't Bush change daylight savings
<1> i think i've got a conclusion to this inheritence bs..
<4> no he's going to in a few years I think
<4> let's hear in dextre1
<3> I'm telling you what to do dextre1 :-\
<1> i implemented a normal function and saw the same exact thing
<4> ...
<1> derived cl*** implementations override base cl*** completely, even with a different parameter list
<5> can you forward dec nested cl***es?
<0> but, is it die to implicit type conversion?
<0> due
<4> couldn't you in theory then cast to the base cl*** and invoke the function from there?
<1> ok, i made 2 cl***es, B inherits from A. and there's A::f(int x), and B::f(char *x), and i tried B::f(123) and it won't compile
<1> of course.. i left out details like declaring the variable with B.. but i know what i'm doing
<4> as long as it's inherited
<1> aldr0n: yeah, but that's verbose
<6> How about telling us what the compile error was.
<6> Then we'll decide if you know what you're doing.
<1> error C2664: 'f' : cannot convert parameter 1 from 'const int' to 'char *'
<5> sola any idea on my Q?
<1> Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
<0> f(static_cast<int> (123))
<0> err no
<1> but as soon as i remove the offending implementation B::f(char *x), it now recognizes f has origins in A and takes an int
<0> wrong logic line
<7> dextre1 why are you trying to use an int where a char* is expected?
<8> the solution is likely *not* to use a cast
<3> hello? dextre1 can you see what I'm typing?
<0> what about A::f(123) ?
<3> sometimes I feel invisible
<1> Cowmoo: i would like to here more about the "using" solution
<1> Cowmoo: where do i put that?
<1> <ear>
<1> <hear>
<1> damn keybaord
<0> you have to explicitly state which one you are trying to call...
<1> cowmoo: how do i use "using Base::f;" ? that sounds like c#
<0> this is and always has been true afaik
<1> doesn't function signature resolution figure it out for me?
<1> the base cl*** function and the derived cl*** function have very different signatures
<0> no because I think the design decision was to try and eliminate run-timer errors that would be possible.
<0> I am not certain though
<1> so.. this is not a bug. it is a design decision
<0> I am just speculating.
<1> yeah, because this seriously adds a lot of extra baggage to my vector function
<1> Vector cl***'s functions
<0> then just add another virtual function to your base that is empty
<7> well that begs to ask why you're writing a vector cl***
<0> or do the using
<3> dextre1: because names in derived cl***es override the same names in the base cl***
<0> using directives accomplish the same thing
<0> as Cowmoo
<3> doesn't matter if the parameter types are different



<0> stated earlier
<1> Cowmoo: apparently so~
<7> listen to Cowmoo
<3> C++ is a dumbo like that
<1> so i need to use namespaces?
<3> so either put using Base::f in your inherited's interface
<1> using blah ?
<3> or redefine the function and have it call Base::f in the defintion
<1> ah thanks!~ i'm going to do some reading on this. i'm a noob when it comes to the foundations
<1> thanks cowmoo
<3> so cl*** B : public A {public: using Base::f; void f(int); };
<3> np
<1> thanks! got it
<3> werd
<9> Noami Watts is beautiful
<3> yea she's alright
<1> this directive thing is pretty useful
<1> i'm surprised i missed this
<3> hmm?
<5> hey vawjr
<10> UNAKA - don't PM me.
<9> There just isn't much of a future in dating a 25 foot gorilla
<11> depends on whether or not _you're_ also a 25 foot gorilla
<9> I suppose that's true
<9> Probably isn't much of a future in dating Naomi Watts, either, for that matter
<9> But I'd give it a shot
<10> JBlitzen - so, why are you dating a 25 foot gorilla?
<9> Not me, dopey
<10> no such nick. :-(
<9> ?
<10> /whois dopey
<11> Dopey was one of the 7 dwarves, he'd be insane to even consider dating a 25 ft gorilla
<10> that's what I thought at first.
<9> I was calling you dopey, dopey
<10> maybe he has a 24-foot stepping stool.
<9> Heh
<9> Skull Island certainly has a vibrant ecosystem
<9> Haha, that even struck me as funny
<7> meh, can't sleep
<11> rdragon btw, jeffmir is in the Seattle area also
<7> oh yeah? neat
<7> i'll be there in about 2 weeks
<7> who does he work for?
<11> I don't recall, he said he'd check in here early next week
<7> did he recently move there?
<11> a year ago? 6 months??
<11> I don't remembr
<7> ah
<9> http://video.google.com/videoplay?docid=-2336001057263201649
<7> haha
<7> and the video cut into the childbirth of all those pups i guess
<7> hmm
<7> not sure if this is real
<7> http://video.google.com/videoplay?docid=1953514730478440414&pl=true
<7> oh crap
<7> I found JBlitzen and peterhu
<7> http://video.google.com/videoplay?docid=5705106544019087065&pl=true
<9> ack
<7> haha
<9> One wonders what you searched for to come up with that gem
<7> lol just browsing the random stuff that pops up
<7> this is kinda neat http://video.google.com/videoplay?docid=4776181634656145640&pl=true
<12> yay, my apartment smells like garbage!
<12> seriously, I think they must patch WoW every other day
<7> ah, i haven't played in months
<12> what server?
<7> hmm, thunderlord
<7> and emerald dream
<12> I forget which one I'm on, heh
<7> heh
<12> neither of those.
<12> what the hell
<12> they must be updating me to a whole new version of the game.
<7> yup, -everything- has changed


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #c++
or
Go to some related logs:

apartments in Dubai internet city
#javascript
what is the difference between char *argv[] and char **argv
aleksandar the grates
#teens
#MissKitten
#teens
mata boule
TAF-X OIL
privat.come



Home  |  disclaimer  |  contact  |  submit quotes