Re: & behaves differently
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: & behaves differently

From: Tim Streater <tim.streater@dante.org.uk>
Date: Tue Mar 07 2006 - 13:12:23 CET

In article <1141409437.320652.250950@t39g2000cwt.googlegroups.com>,
 "fritz-bayer@web.de" <fritz-bayer@web.de> wrote:

> Are you serious about this? I mean you are right that it should be
> zero, but could it be, that I have to use a different expression? Or
> use a function instead of using the & ? Have you tried it yourself on
> your machine? Do you get the same result?

If I were given such a porting job, I would be inclined to take a step
back and see what the purpose of the function was. As has been
eloquently pointed out, you are unlikely to succeed if all you do is try
to port the code in a mechanical way.

Is the function called in one place in the code? In many? Figure out
what you want the function to do and only then worry about how to do it.

-- tim
Received on Mon May 1 02:28:47 2006