Beau Peep Notice Board
Beau Peep Notice Board => Outpourings => Topic started by: Egg on July 25, 2016, 08:19:11 PM
-
.......actually have a job?
I know he's on a mission to beat Peepmaster but the posts are relentless!
-
We're all entitled to a little time off to pursue trivialities.
I draw silly pictures. And then I take some time off...
-
Mincey's on flexible work hours. But he might be taking a rest for a while. :)
-
Flexible hours??
Flexible months, more like !
-
Why don't we have a job swap week!
Not saying I'm excellent at drawing (or anything else really) but I'll give it a go and I'm sure
one of you will fit quite easily into the world of Chickens!
-
Egg, why don't you start by trying out some programming.
public function isViewable($isLoggedIn)
{
if ($this->idparent === IDPARENT_HEADER) return true;
elseif ($this->parent === null && !$isLoggedIn) return false;
else {return $this->parent->isViewable($isLoggedIn);}
}
The function belongs to my Article class, objects of which are linked in a hierarchy using the idparent member. Obviously the function works recursively up the hierarchy by calling itself.
Tell me why this keeps throwing an error. Any ideas?
-
Is the error: compile time errors: syntax errors: static semantic errors: runtime errors:
dynamic semantic errors: or logical errors?
-
It's a runtime error. The code cannot call $this->parent->isViewable on a non-object. Any ideas?
(Did you understand anything of what you copy and posted? And next time at least change the plurals to singulars.) :)
-
Or you can try the drawing thing. It might make more sense.
-
Or you can try the drawing thing.
Egg did say 'job'.
-
It's a runtime error. The code cannot call $this->parent->isViewable on a non-object. Any ideas?
(Did you understand anything of what you copy and posted? And next time at least change the plurals to singulars.) :)
I did do C+ for a while but didn't get much further than my name flashing on the screen in different
colours!
Anyway, && is miss used and can cause errors!
I'm in danger of almost believing my own BS!
-
Or you can try the drawing thing. It might make more sense.
Can I use crayons!
-
I did do C+ for a while but didn't get much further than my name flashing on the screen in different
colours!
I think you mean C++. You should have continued until you got your name bouncing around the screen.
Anyway, && is miss used and can cause errors!
That actually is the problem, though not for the vague reason you give.
-
Or you can try the drawing thing.
Egg did say 'job'.
Shall we compare career earnings? :\
-
Or you can try the drawing thing. It might make more sense.
Can I use crayons!
I've no idea. Can you?
-
Or you can try the drawing thing. It might make more sense.
Can I use crayons!
I've no idea. Can you?
;D ;D ;D