well ...no... first evaluate, then assign. and constants are int by default.
I think C/C++ would have the same problem...
On Sun, Jan 16, 2011 at 1:25 PM, André Warnier wrote:
> Ran Berenfeld wrote:
>
>> thanks :) silly me. problem solved
>>
>
> It's more silly Java. It could figure out tha
Ran Berenfeld wrote:
thanks :) silly me. problem solved
It's more silly Java. It could figure out that the left side wants a long,
couldn't it ?
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additiona
thanks :) silly me. problem solved
On Sun, Jan 16, 2011 at 12:21 PM, Konstantin Kolinko wrote:
> 2011/1/16 Ran Berenfeld :
> >// cache for 1 year
> >private static final long _cacheTime = (1000 * 60 * 60 * 24 * 365);
>
> With this sample program:
> public class foo{
> public static v
2011/1/16 Ran Berenfeld :
> // cache for 1 year
> private static final long _cacheTime = (1000 * 60 * 60 * 24 * 365);
With this sample program:
public class foo{
public static void main(String[] a){
long _cacheTime = (1000 * 60 * 60 * 24 * 365);
System.out.println("_cacheTime: " + _cacheTime