Jump to content

how do you say "->" ?


emehrkay

Recommended Posts

You are right it does not do the same thing because php is not c. But pointers to structures and instances are so alike that this is the reason cpp and php and perl and a few others chose to use the points at symbol and that is why i said what I did but after saying this i wonder if php copied perl, c or cpp most probably all 3. I am not quite sure, It might be time for me to learn more of the php internals I have put it off for so long.


Link to comment
Share on other sites

Maybe the original person(s) that implemented objects in PHP didn't want to deal with the added complexity of dealing with the problems myself and 448191 discussed above; or they didn't [i]know[/i] how to deal with them.

Either way, they chose -> and the bottom line is no one has bothered to go back and implement a dot operator that does the same thing.  And why would anyone want to?  There's no [i]practical[/i] reason in this case to go back and implement a second operator that does the exact same thing as one that already exists.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.