Author Topic: Does Mincy.......  (Read 5019 times)

Egg

  • Guest
Does Mincy.......
« 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!

Offline Tarquin Thunderthighs lll

  • .
  • Posts: 5847
  • They call me Tarqs... and other stuff.
Re: Does Mincy.......
« Reply #1 on: July 25, 2016, 09:09:21 PM »
We're all entitled to a little time off to pursue trivialities.

I draw silly pictures. And then I take some time off...
I apologise, in advance.

Offline Mince

  • .
  • Posts: 6978
  • Utter Waste of Time
Re: Does Mincy.......
« Reply #2 on: July 25, 2016, 10:40:32 PM »
Mincey's on flexible work hours. But he might be taking a rest for a while.  :)

Sandy Buttcheeks

  • Guest
Re: Does Mincy.......
« Reply #3 on: August 01, 2016, 05:37:59 PM »
Flexible hours??

Flexible months, more like !

Egg

  • Guest
Re: Does Mincy.......
« Reply #4 on: August 02, 2016, 12:04:30 PM »
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!

Offline Mince

  • .
  • Posts: 6978
  • Utter Waste of Time
Re: Does Mincy.......
« Reply #5 on: August 02, 2016, 12:50:35 PM »
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?

Egg

  • Guest
Re: Does Mincy.......
« Reply #6 on: August 02, 2016, 04:44:43 PM »
Is the error: compile time errors: syntax errors: static semantic errors: runtime errors:
dynamic semantic errors: or logical errors?

Offline Mince

  • .
  • Posts: 6978
  • Utter Waste of Time
Re: Does Mincy.......
« Reply #7 on: August 02, 2016, 06:32:05 PM »
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.) :)
« Last Edit: August 02, 2016, 06:36:21 PM by Mincy McMinceface »

Offline Tarquin Thunderthighs lll

  • .
  • Posts: 5847
  • They call me Tarqs... and other stuff.
Re: Does Mincy.......
« Reply #8 on: August 02, 2016, 06:52:25 PM »
Or you can try the drawing thing. It might make more sense.
I apologise, in advance.

Offline Mince

  • .
  • Posts: 6978
  • Utter Waste of Time
Re: Does Mincy.......
« Reply #9 on: August 02, 2016, 07:12:55 PM »
Or you can try the drawing thing.

Egg did say 'job'.

Egg

  • Guest
Re: Does Mincy.......
« Reply #10 on: August 02, 2016, 07:20:56 PM »
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!

Egg

  • Guest
Re: Does Mincy.......
« Reply #11 on: August 02, 2016, 07:22:02 PM »
Or you can try the drawing thing. It might make more sense.
Can I use crayons!

Offline Mince

  • .
  • Posts: 6978
  • Utter Waste of Time
Re: Does Mincy.......
« Reply #12 on: August 02, 2016, 07:27:04 PM »
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.

Offline Tarquin Thunderthighs lll

  • .
  • Posts: 5847
  • They call me Tarqs... and other stuff.
Re: Does Mincy.......
« Reply #13 on: August 03, 2016, 01:15:52 PM »
Or you can try the drawing thing.

Egg did say 'job'.

Shall we compare career earnings?  :\
I apologise, in advance.

Offline Tarquin Thunderthighs lll

  • .
  • Posts: 5847
  • They call me Tarqs... and other stuff.
Re: Does Mincy.......
« Reply #14 on: August 03, 2016, 01:16:19 PM »
Or you can try the drawing thing. It might make more sense.
Can I use crayons!

I've no idea. Can you?
I apologise, in advance.