Re: [PHP] private $foo [HISTORY - TOTALLY THREAD JACKED]

2006-03-29 Thread John Nichel
tedd wrote: Hard drives. You wusses. Between punch cards, data cassettes, 5-1/4 and 8" floppies, it was years before I saw a hard drive. -- John C. Nichel IV I didn't say that HD's were my first storage medium. I remember typing in 200+ line Star Trek program three times trying to get my G

Re: [PHP] private $foo [HISTORY - TOTALLY THREAD JACKED]

2006-03-29 Thread tedd
Hard drives. You wusses. Between punch cards, data cassettes, 5-1/4 and 8" floppies, it was years before I saw a hard drive. -- John C. Nichel IV I didn't say that HD's were my first storage medium. I remember typing in 200+ line Star Trek program three times trying to get my GE tape recor

Re: [PHP] private $foo [HISTORY - TOTALLY THREAD JACKED]

2006-03-29 Thread John Nichel
tedd wrote: At 8:50 AM -0600 3/29/06, Jay Blanchard wrote: [snip] Read up on the history of computers -- the first programmer, as I recall, was one Lady Lovelace who programmed Babbage's first mechanical computer (if you don't count the abacus) in the early 1800's. Of course, I remember program

Re: [PHP] private $foo

2006-03-29 Thread Austin Denyer
tedd wrote: > At 3:56 PM +0100 3/29/06, Dan Parry wrote: > >> I can see a pattern emerging here... >> >> Chaos? You had chaos? All we had was this sodding great explosion... >> >> :-) >> >> Dan > > > Great explosion!? You had a Great explosion!? > > All we had was xml and everyone knows you can

RE: [PHP] private $foo [GONE WILD]

2006-03-29 Thread tedd
At 10:39 AM -0600 3/29/06, Jay Blanchard wrote: [snip] You're welcome. As this list gets to know me, I think you'll find I have a slightly different, and often humorous, perspective on everything. As Oscar Wilde once said "Life is far too important to be taken seriously." [/snip] He also said th

Re: [PHP] private $foo [GONE WILD]

2006-03-29 Thread John Nichel
Jay Blanchard wrote: [snip] You're welcome. As this list gets to know me, I think you'll find I have a slightly different, and often humorous, perspective on everything. As Oscar Wilde once said "Life is far too important to be taken seriously." [/snip] He also said that life was to short to

RE: [PHP] private $foo [HISTORY - TOTALLY THREAD JACKED]

2006-03-29 Thread tedd
At 8:50 AM -0600 3/29/06, Jay Blanchard wrote: [snip] Read up on the history of computers -- the first programmer, as I recall, was one Lady Lovelace who programmed Babbage's first mechanical computer (if you don't count the abacus) in the early 1800's. Of course, I remember programming with roc

Re: [PHP] private $foo [GONE WILD]

2006-03-29 Thread Philip Thompson
On Mar 29, 2006, at 10:39 AM, Jay Blanchard wrote: [snip] You're welcome. As this list gets to know me, I think you'll find I have a slightly different, and often humorous, perspective on everything. As Oscar Wilde once said "Life is far too important to be taken seriously." [/snip] He also sa

RE: [PHP] private $foo

2006-03-29 Thread tedd
At 3:56 PM +0100 3/29/06, Dan Parry wrote: I can see a pattern emerging here... Chaos? You had chaos? All we had was this sodding great explosion... :-) Dan Great explosion!? You had a Great explosion!? All we had was xml and everyone knows you can't do anything with that. :-) tedd -- ---

RE: [PHP] private $foo [GONE WILD]

2006-03-29 Thread Jay Blanchard
[snip] You're welcome. As this list gets to know me, I think you'll find I have a slightly different, and often humorous, perspective on everything. As Oscar Wilde once said "Life is far too important to be taken seriously." [/snip] He also said that life was to short to dance with ugly women,

Re: [PHP] private $foo

2006-03-29 Thread tedd
At 8:43 AM -0600 3/29/06, Philip Thompson wrote: On Mar 29, 2006, at 8:25 AM, tedd wrote: I have been programming since the mid 70's and foo was in the lexcon at that point. I guess I am old school. People have been programming since the 70's?!!?!! I didn't think it was possible until the e

Re: [PHP] private $foo [HISTORY - TOTALLY THREAD JACKED]

2006-03-29 Thread Anthony Ettinger
On 3/29/06, Jay Blanchard <[EMAIL PROTECTED]> wrote: > > [snip] > Read up on the history of computers -- the first programmer, as I > recall, was one Lady Lovelace who programmed Babbage's first > mechanical computer (if you don't count the abacus) in the early > 1800's. > > Of course, I remember p

RE: [PHP] private $foo

2006-03-29 Thread Dan Parry
[mailto:[EMAIL PROTECTED] Sent: 29 March 2006 15:46 To: php-general@lists.php.net Subject: Re: [PHP] private $foo On Wednesday 29 March 2006 15:43, Philip Thompson wrote: > > Of course, I remember programming with rocks and that was before we   > > had zero's. We only had one

RE: [PHP] private $foo [HISTORY - TOTALLY THREAD JACKED]

2006-03-29 Thread Jay Blanchard
[snip] Read up on the history of computers -- the first programmer, as I recall, was one Lady Lovelace who programmed Babbage's first mechanical computer (if you don't count the abacus) in the early 1800's. Of course, I remember programming with rocks and that was before we had zero's. We only

Re: [PHP] private $foo

2006-03-29 Thread Duncan Hill
On Wednesday 29 March 2006 15:43, Philip Thompson wrote: > > Of course, I remember programming with rocks and that was before we   > > had zero's. We only had one's and that was a programming nightmare.   > > You new guys at least have 1's and 0's to work with. > > tedd > > I laughed my head off ab

Re: [PHP] private $foo

2006-03-29 Thread Philip Thompson
On Mar 29, 2006, at 8:25 AM, tedd wrote: I have been programming since the mid 70's and foo was in the lexcon at that point. I guess I am old school. People have been programming since the 70's?!!?!! I didn't think it was possible until the early 90's! Wow I must be young! ;) ~Philip

Re: [PHP] private $foo

2006-03-29 Thread tedd
I have been programming since the mid 70's and foo was in the lexcon at that point. I guess I am old school. People have been programming since the 70's?!!?!! I didn't think it was possible until the early 90's! Wow I must be young! ;) ~Philip ~Philip: Read up on the history of computers

Re: [PHP] private $foo

2006-03-29 Thread Philip Thompson
On Mar 28, 2006, at 4:29 PM, Jay Blanchard wrote: [snip] That's interesting -- not meaning any disrespect, and this is just an opinion -- but in the newly published "PHP Phrasebook" by Christian Wenz (an excellent book btw), he says: "Another phrase I promise you will not find in this book is a

Re: [PHP] private $foo

2006-03-29 Thread tedd
Jochem: Foo, Bar & Qux are used all over the place in IT in the same way 'Person A' and 'Person B' might be used when talking about marketing demographics theory. they are shortcuts to avoid having to think up realworld examples, why would we want to do that? 1. real world examples are full of

Re: [PHP] private $foo

2006-03-29 Thread Jochem Maas
Anthony, Tedd, you now grok the property overloading functionality of php5? also the bug mentioned by M.Sokolewicz should be fixed in the latest versions (can't remember exactly which one) -- Foo, Bar & Qux are used all over the place in IT in the same way 'Person A' and 'Person B' migh

Re: [PHP] private $foo

2006-03-28 Thread Jasper Bryant-Greene
Anthony Ettinger wrote: private $foo; cannot be accessed directly outside the script. print $f->foo; #fails Fatal error: Cannot access private property Foo::$foo in /x/home/username/docs/misc/php/client.php on line 11 Did you define the __get and __set functions in your class as in the prev

Re: [PHP] private $foo

2006-03-28 Thread Anthony Ettinger
On 3/28/06, M. Sokolewicz <[EMAIL PROTECTED]> wrote: > Anthony Ettinger wrote: > > On 3/28/06, Joe Henry <[EMAIL PROTECTED]> wrote: > > > >>On Tuesday 28 March 2006 1:12 pm, Jochem Maas wrote: > >> > >>> >>> > >>>class Foo > >>>{ > >>> private $foo = 'foo'; > >>> > >>> function __get($k)

RE: [PHP] private $foo

2006-03-28 Thread Jay Blanchard
[snip] That's interesting -- not meaning any disrespect, and this is just an opinion -- but in the newly published "PHP Phrasebook" by Christian Wenz (an excellent book btw), he says: "Another phrase I promise you will not find in this book is anything that looks like foo, bar, baz, or any othe

RE: [PHP] private $foo

2006-03-28 Thread tedd
I am always using 'foo' in conversation and finally said it enough that the CEO used it in a meeting the other day. Setter functions are cool. That's interesting -- not meaning any disrespect, and this is just an opinion -- but in the newly published "PHP Phrasebook" by Christian Wenz (an exce

Re: [PHP] private $foo

2006-03-28 Thread M. Sokolewicz
Anthony Ettinger wrote: On 3/28/06, Joe Henry <[EMAIL PROTECTED]> wrote: On Tuesday 28 March 2006 1:12 pm, Jochem Maas wrote: {$k})) { return $this->{$k}; } throw new Exception("non existing property!"); } function __set($k, $v)

Re: [PHP] private $foo

2006-03-28 Thread Anthony Ettinger
On 3/28/06, Joe Henry <[EMAIL PROTECTED]> wrote: > On Tuesday 28 March 2006 1:12 pm, Jochem Maas wrote: > > > > > class Foo > > { > > private $foo = 'foo'; > > > > function __get($k) > > { > > if (isset($this->{$k})) { > > return $this->{$k}; >

Re: [PHP] private $foo

2006-03-28 Thread Anthony Ettinger
On 3/28/06, Jochem Maas <[EMAIL PROTECTED]> wrote: > Anthony Ettinger wrote: > > On 3/28/06, Jay Blanchard <[EMAIL PROTECTED]> wrote: > > > >>[snip] > >>I see this all over the place, but I don't think it stores the variable > >>in = > >>$foo: > >> > >>class Foo { > >>private $foo; > >> > >>public

Re: [PHP] private $foo

2006-03-28 Thread Joe Henry
On Tuesday 28 March 2006 1:12 pm, Jochem Maas wrote: > > class Foo > { > private $foo = 'foo'; > > function __get($k) > { > if (isset($this->{$k})) { > return $this->{$k}; > } > > throw new Exception("non existing pr

Re: [PHP] private $foo

2006-03-28 Thread Jochem Maas
Anthony Ettinger wrote: On 3/28/06, Jay Blanchard <[EMAIL PROTECTED]> wrote: [snip] I see this all over the place, but I don't think it stores the variable in = $foo: class Foo { private $foo; public function __setFoo($arg) { $this->foo = $arg; } [/snip] I am always using 'foo' in conversat

Re: [PHP] private $foo

2006-03-28 Thread Anthony Ettinger
On 3/28/06, Jay Blanchard <[EMAIL PROTECTED]> wrote: > [snip] > I see this all over the place, but I don't think it stores the variable > in = > $foo: > > class Foo { > private $foo; > > public function __setFoo($arg) > { > $this->foo = $arg; > } > [/snip] > > I am always using 'foo' in conversat

RE: [PHP] private $foo

2006-03-28 Thread Jay Blanchard
[snip] I see this all over the place, but I don't think it stores the variable in = $foo: class Foo { private $foo; public function __setFoo($arg) { $this->foo = $arg; } [/snip] I am always using 'foo' in conversation and finally said it enough that the CEO used it in a meeting the other day.