@# 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> do what to customers? beat them?
<1> kick them out the store :P
<1> call security and have them removed XD
<1> so much fun
<1> anyhow, dinner time, bbiab
<1> dont go looking for snakes you might find them...
<2> Nakro please don't tell us what you're listening to :/
<2> we even care less about the encoding information
<3> why has everyone gone so quiet?
<2> most people are at work
<4> well, in the Americas anyhow
<2> er, yeah
<5> well i have a question, and i am afraid that it will be kind of silly for 4, all programmers, but i got it as a homework at school, it sounds like this: how can i show the inverse of a unknown number, of unknown cipher
<5> (for 4 u)



<5> i hope i won't get banned for asking that;D
<5> :D
<5> mda
<6> folks, another "what is the proper way of doing it" question. If I have a method Cl*** A{A( string key, string value );A( string key, string value, int type )}. Is it better to just do a single ctor with optinal params "A( string key, string value, int type = 0 )"or to keep it overloaded?
<7> I don't think it matters, if the code is not much diffrent you can use the optional param version
<8> What does 'type' mean?
<6> type of value
<4> why are you p***ing those strings by value?
<6> no, in real code, they are by const ref
<8> And what is the type when you doesn't p*** a type?
<7> 0 :)
<8> And what is the type when you don't p*** a type?
<4> it isn't
<6> 0, or undefined
<6> 0 = undefined
<8> Does it make sense to have an undefined type? Does undefined mean "irrelevant" or "will set that later"?
<6> irrelevent
<8> But type==0 is never equal to any other type?
<4> Run <sigh> type will either have the value 0 or whatever is p***ed if you use the default valued one
<6> vaw: exactly
<6> lol, i am wondering the same thing
<8> I'm trying to understand the meaning of what he had in mind with the design.
<8> But since vawjr knows everything - let him help you.
<6> 0 = irrelevant, no checking done
<6> 1 = int for example
<4> he asked should he do A(str, str) and A(str, str, int) OR A(str, str, int = 0)
<4> 2 constructors or 1
<8> vawjrwrk: Did I ask you something?
<9> hi! when an std::vector ist destructed, does it then automatically call the descructors of it's elements?
<4> no, Run you didn't
<10> http://www.adcritic.com/interactive/view.php?id=5927
<2> yes, ignu_dan
<8> I understand his question perfectly, thanks.
<4> well, you confused both mozai and I with your babbling
<4> s/I/me
<8> I have enough you your insults.
<4> ditto
<9> thx, rdragon.
<4> ignu_dan note that IF you're doing std::vector<T*> that it will destruct the pointers (i.e. do nothing) NOT the things pointed to
<4> mozai I suspect I'd tend to favor the default value
<8> ok then - I put you on ignore (channel messages only). Not an act of war - it's just better for the both of us imho.
<6> guys, sorry, I didn't mean to start anything here :-/
<9> ok. and what happens if a i have a cl*** C with a constructor C(int x); and no other constructor. now i create a vector<C> and tell it to resize to 10. how are these elements created then? or does the vector jusr allocate the memory
<9> ?
<8> mozai: And that you wonder were I'm going with this... I thought you wanted help - did you ever think that I might need that info in order to answer your question?
<10> don't know, wasn't here.
<10> but, that link is good
<11> ignu_dan, default constructed
<10> and you should both go watch it.
<4> yes, it's hilarious, saw it some time ago
<10> you **** ignu_dan!
<11> ignu_dan, if you don't provide a default constructor, you can't put it in a vector
<4> ignu_dan you MUST have a default constructor if you're going to resize a vector



<6> Run: Yes, I understood, that is whay I was answering. But I thought that you had it figured out after my answeres.
<9> thx :)
<4> ignu_dan because when you resize, the vector has to have SOME valid objects in it
<8> mozai: If type==0 was symmetrically equivalent with any other value - I'd have said an overload was nonsense. The only reason it makes sense is when you need different code (ie: A(whatever) { if (type == 0) thishere; else thatthere; }. Neither applies now, so I think it doesn't matter. Using the overload will generate a NEW function, but you might feel that that is warranted based on the fact that the interface is more clean. I'm not if it's more clean
<8> ay it was when type==0 means 'yet to be defined' instead of 'irrelevant'.
<8> It's like you say that all your types a pointers, and type==0 *is* void*.
<8> That is a type too.
<8> Therefore I'd be inclined to go for the default parameter.
<6> very thourough explanation Run, thanks.
<12> hey GuRL`
<8> spammer I bet
<12> take a bet? for your @?
<8> What's the difference between a 'malisa18' and a gurl!naughty@?
<9> 210.213 are a lot of robotsd.txt-ignoring bots which visit my website regularly. if i had @, i would bet.
<12> hm
<8> Kalasanova did say what was in it for me, so that bet can hardly taken seriously.
<8> be*
<8> I recognize 210.213 too... I believe I have it firewalled because of spam email.
<8> hmm, no I banned SPAM210.139.128.0 - 255.255
<8> japan ...but maybe it's china?
<9> I'd suggest that Kalasanova has to call him 'melisa18' if he looses the bet.
<12> hehehe
<8> It's an IP from the Philippines
<12> ill write an alias for **** OFF, IM NOT A GIRL! then
<9> HAHA :)
<9> you'll need to.
<12> naah i know one better
<12> Hey honey, im gay
<12> :D
<12> that one would defenetly work
<8> With that nick, it's more likely you'll get banned then harrashed.
<9> *lol
<9> mh..still, a nick is not a reason for a ban.
<4> depends on the nick
<12> if it as two capitol s's in it it would be banned
<9> you wouldn't like to ban a spammer just to later on discover that it was a nice girl from your town wanting to ask homework questions on #c++...okok, pretty unlikely anyways
<8> I would have no problems with that.
<12> or a pretty girl that fancies nerds :)
<12> well thats possible
<13> i reserved the 18 for you, Kalasanova.
<12> nerds dont have really high demands if it comes to girls i guess
<8> Anyway, it's from the Philippines as I said - so it's not your town.
<14> I love java!!
<8> Also, if it was a nice boy from my town wanting to ask homework questions, then banning it for being a spammer would probably be a wonderful to get into contact with him...
<12> i love Lina!
<14> i love pascal!
<8> wonderful way*
<15> uhoh
<15> I see a nick collision coming.
<8> F3arl3ss Noidea
<15> that's automatic
<8> Doesn't seem smart to auto change nick like that :p
<15> anytime Noidea goes offline
<6> basically, I am using the type to do later checks on "value". examle. if( type == INT ) { if( !ValidateInt(value) throw InvalidData }
<15> all my IRC clients are set to switch to take the nick
<16> muhahaha
<15> every now and then, some bastard comes along and steals it :)
<15> so I have to steal it back.
<13> got 2 hellos and a hug in less than 7 secs on #love without me saying anything.
<8> mozai: Seems you missed the point of C++ being type-safe
<15> real ones melissa19?
<16> lol @ mel
<11> mozai, any reason you're not using a more generic approach (i.e templates) instead of your own type thing?
<6> Run: no, because it is run time checks
<6> everything is a string
<6> "properties" basically
<16> string means thong in dutch
<16> :)
<6> YUY: honestly, because I don't know how to use them
<11> then learn :)
<6> how would it help me in this case?
<6> ( the templates )
<11> well, i'd have to know more information about what you're doing..


Name:

Comments:

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






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

gharwiena
#linuxhelp
#linuxhelp
le ma tafx xinhi?
monut loopback
what does works toilet cleaner contain
+running linux applications on os x
zimbablue
#AllNiteCafe
#php



Home  |  disclaimer  |  contact  |  submit quotes