Bugs item #1074983, was opened at 2004-11-28 23:06
Message generated for change (Comment added) made by ornus
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1074983&group_id=31650

Category: Other
Group: 0.85
Status: Open
Resolution: None
Priority: 5
Submitted By: Ornus (ornus)
Assigned to: Nobody/Anonymous (nobody)
Summary: file::get-length returns long

Initial Comment:
file::get-length returns a number of "long" type, where 
nant is oriented towards working with integer numbers 
of "int" type. convert::to-int work in converting "long" 
to "int", but it is being depreciated.

----------------------------------------------------------------------

>Comment By: Ornus (ornus)
Date: 2004-11-30 02:14

Message:
Logged In: YES 
user_id=1057183

I'm verifying that a length of a file generated during build is 
close to the expected using similar code: (convert::to-int
(file::get-length(file))/100)==expectedLength. The length 
can oscillate around expected length slightly, but I want to 
be able to catch large oscillations and stop the build process. 
If convert::to-int is removed nant refuses to execute build 
due to type incompatibility.

----------------------------------------------------------------------

Comment By: Gert Driesen (drieseng)
Date: 2004-11-29 01:28

Message:
Logged In: YES 
user_id=707851

Can you provide an example of why you're converting the 
long back to int ?

I agree that we should have a long::to-int function though.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1074983&group_id=31650


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to