@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6



Comments:

<0> did you send the "i touch butts" article?
<1> i don't send anything. anything i post is directly added to any feed
<1> but yeah, i posted the i touch butts article
<0> figures
<1> you didn't hear it from me, but soon we're going to be adding more crosses for trading
<1> which is stupid. we just need to fix our ****ing slippage
<0> MORE crosses? dear god where's the demand for that?
<0> i dont even touch the exotics as it is
<1> yeah
<1> there's like 5 people who want it
<1> screw our terrible slippage.. we should let people trade hkd/mxn!
<0> lol
<0> what sort of slippage is it?
<1> you know.. when you place an order and it buys at a different price
<0> well the trading station doesn't let you... sorta
<1> maybe it's when you close



<1> i dunno too much about trading
<0> but i presume this relates back to the dialup users?
<1> just that our slippage is bad
<1> probably
<1> i think most other companies beat our spreads, too
<2> [12:00:17] * Now talking in #teen
<2> [12:00:17] * Topic is 'Your Mom is so fat, if she was a c variable, her initialization would look like this: yourMom = (TFAT*) malloc(sizeof(YOUR_MOM)); //Stack Overflow'
<2> let's count the errors together, kids
<3> heh
<2> casting malloc is the devil
<2> every time you cast malloc, god kills a kitten
<0> every time you kill, god *********es a kitten
<4> I have an abstract cl*** that from an implemented method calls its child's implementation of an abstract function.
<4> But
<4> PHP won't let me.
<4> How do I do it?
<0> child? you mean subcl***?
<2> okay, let's wrap our heads around this
<4> abstract cl*** A { function a () { $this->b(); } abstract function b(); } cl*** B extends A { function b() { ... } }
<4> It won't let me do $this->b()
<4> And yes, subcl*** if you will.
<2> correctly
<4> It should though.
<2> in short, rethink your design
<2> no, it shouldn't
<4> ...
<4> Alright
<4> Well,
<2> because at the end of the cl*** declaration, b() doesn't exist, it's "virtual", we call it
<4> I know
<2> you need a concrete instantiation before b() exists
<4> But it's implemented
<4> <_<
<4> But it is instantiated in cl*** B
<2> i don't know of any object-oriented cl*** that'll let you get away with that
<2> s/cl***/language/
<4> But I don't see why it logistically isn't possible?
<4> a and b exist in cl*** B
<2> because b() doesn't exist when you're done declaring A?
<4> (the a method exists since its inherited from A)
<2> so how can PHP analyze $this->b()?
<2> you never get to the inheritance part
<4> Well,
<4> I never define new A
<4> I define a new B
<2> and?
<2> PHP has to compile $this->b()
<2> it can't at the end of A { }
<4> Yes, but it's already compiled A
<2> which i bet five bucks is where your error is
<4> :S
<4> hmm
<2> hold for two seconds, k?
<4> Ah
<4> K
<4> You're saying it compiles A, and gets the error, before it can compile B and realize the function's been implemented in B? But this is what abstract cl***es were made for...
<4> To call functions that will be implemented at some further point (read: subcl***), but are still call-able because you know they'll be implemented.
<4> Shouldn't matter if I call $this->b() in A or B...
<2> my gut feeling is that there isn't a $this in abstract cl***es
<2> i might be wrong
<4> I could go ahead and copy+paste function a() to all subcl***es of A



<4> But that's pointless
<2> hang on, i'm doing a POC in a language i'm more familiar with
<4> Hmm
<4> K
<4> No, there is a $this
<4> Everything else works, like $this->var = 'val';
<4> or abstract somecl*** { private $var = 1; public function __construct() { $this->var = 2; } }
<4> For interfaces it makes sense, but abstract cl***es shouldn't have a problem with it :S
<2> you might be missing a keyword
<2> let me compile this and see what happens
<2> 0 errors, 0 warnings
<2> hmmm.
<4> That exact PHP?
<4> I am working with an actual project
<4> Didn't actually try the simplified version I showed here.
<2> your'e after this, correct: http://pastebin.ca/157757
<4> Hold on
<4> Yes
<4> Except
<4> You never call Method()
<4> A:Method()
<4> I did actually call it
<4> Maybe the error comes during run-time?
<2> yeah, that was coming
<2> i just wanted to make sure i had the framework right
<4> K
<2> C:\JL\Projects\Virtualosity\bin\Debug>Virtualosity.exe
<2> In A::Method()
<2> In B::OtherMethod()
<2> hm.
<2> so i suppose i was wrong about it being possible, now why won't PHP accept it...
<2> pastebin a skeleton of the actual code you're using if you can
<4> K
<4> Wait
<4> I just tried it and it works with the simplified version
<2> good, you're onto something! :)
<4> http://pastebin.ca/157772
<4> OH
<4> Wait
<4> Let me check something
<4> Aha
<4> I'm an idiot.
<4> Sorry to
<2> by the way, i know it's oddly unorthodox for a #php helper to try something in c# before advising on it, but this was object-oriented in nature, and my c# oop > php5 oop
<4> I made A::b...
<4> private...
<4> Instead of protected.
<2> d'oh!
<4> Sorry.
<4> :P
<2> hey, no worries
<4> Hah no it's fine, I appreciate the help.
<4> Normally I'd go figure it out on my own, but this error was so weird I thought it might be a problem in PHP's engine
<4> Alright thanks
<2> no problem buddy
<2> WRITE THAT DOWN
<2> jedzilla HELPED A STRANGER
<5> yeah you needed protected
<5> to access vars from a parent cl***
<2> i hate virtual ****
<5> could have used public accessors
<5> like a good OO monkey
<2> makes your eyes bleed when you try to figure out a code path
<5> jedzilla, they can be very useful
<2> oh, they can
<2> i just hate reading it
<5> yup, but it's still better than goto
<2> they're particularly fun in .NET because you don't need an API to write plugins for a well-designed system
<2> System.Reflection is a fun namespace to play with too
<2> http://lug.oregonstate.edu/index.php/Projects/Firefox/Firefox_Circle
<3> @search poonjabi
<6> Search results for poonjabi:
<6> Urban Dictionary: Poonjabi -> http://tinyurl.com/rfdr9 [www.urbandictionary.com]
<2> what a copy protection scheme


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#india
londoner + dalnet + ashok
#chat-world
#worldchat
#kl
#india
#chat-world
#allnitecafe
#kl
Tutkey guys



Home  |  disclaimer  |  contact  |  submit quotes