Reply to Re: print out variable name as well as its content

Your name:

Reply:


Posted by Jerry Stuckle on 10/21/07 14:12

kenneth02394832 wrote:
> On Oct 19, 4:47 am, Jerry Stuckle <jstuck...@attglobal.net> wrote:
>> Summercool wrote:
>>> On Oct 18, 7:33 pm, Jerry Stuckle <jstuck...@attglobal.net> wrote:
>>>> Summercool wrote:
>>>>> On Oct 18, 7:25 pm, Jerry Stuckle <jstuck...@attglobal.net> wrote:
>>>>>> Summercool wrote:
>>>>>>> On Oct 18, 6:41 pm, Michael Fesser <neti...@gmx.de> wrote:
>>>>>>>> .oO(Summercool)
>>>>>>>>> On Oct 18, 5:46 pm, Gary L. Burnore <gburn...@databasix.com> wrote:
>>>>>>>>>>> echo '$obj->arr[n*size][i-1]' . $obj->arr[n*size][i-1];
>>>>>>>>>>> so you have to make sure both places are indeed the same expression --
>>>>>>>>>> If that's too hard for you, perhaps you should consider a job in the
>>>>>>>>>> food or hospitality industry.
>>>>>>>>> so if PHP or people who are proficient in PHP cannot give a good
>>>>>>>>> solution to this simple thing
>>>>>>>> Simple? This:
>>>>>>>> $obj->arr[n*size][i-1]
>>>>>>> a few other languages I know can make this possible. in the PHP group
>>>>>>> I usually hear "don't compare PHP to other languages". or "no, you
>>>>>>> don't really need that." oh well, if this is the way it is, so be it.
>>>>>> You don't get it, do you? Other languages generally do NOT make this
>>>>>> possible. The debuggers they have may, though.
>>>>>> And there are PHP debuggers, also.
>>>>> that's not true. The other languages don't need a debugger to make
>>>>> this possible.
>>>> For instance - in C, there is no way to display a variable. It is
>>>> strictly the debugging tools which make it work.
>>>> Or, I challenge you to show me ANYWHERE in the ANSI C spec that this
>>>> should be possible. It doesn't exist.
>>>> It is strictly a result of the debugging tools in the compiler.
>>>> And I did not say you had to have a debugger. I said debugging tools.
>>>> There is a difference!
>>> you can use #define in C to do that. it is in the pre-compiler.
>> Yes, it is. But it doesn't produce the output you're looking for. All
>> that does is create a macro - which expands to exactly what everyone
>> else was telling you to do.
>>
>> No difference.
>
>
> See, Jerry Stuckle, if you are not that good, stop sounding like you
> are good. The C preprocessor can do it, by something that's called
> Stringification.
>
> http://www.google.com/search?hl=en&q=C+Stringification&btnG=Google+Search
>
> Don't know about it, DO YOU? Since you are not as good as me, why
> don't you go work for the hospitality or service industry? But sorry,
> you are not that hospitable either.
>
>

Oh, I know about it, all right. Every one of those examples is a MACRO
- just as I said. But you don't know the difference, do you?

And BTW - I suspect I've been teaching C programming longer than you've
been a programmer. From your updates, probably longer than you've been
alive.

Actually, the service or hospitality industry is beyond your grasp.
Maybe dishwasher would work.


--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация