Sounds good to me. Thanks for sounding the idea out.
Dan Schenck
-----Original Message-----
From: Moses DeJong [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 17, 1999 1:32 AM
To: schenck
Cc: [EMAIL PROTECTED]
Subject: Re: [Tcl Java] Tcl Java Conversion Problem
Well, nobody seems to hate the idea of keeping long conversion in a String
instead of turning it into an integer so I am going to include this change
in the upcoming Jacl 1.2.2 release.
Mo DeJong
dejong at cs.umn.edu
On Thu, 11 Mar 1999, schenck wrote:
> All,
>
> Here is a real problem I have encountered using TclBlend. I wanted to call a Java
>class that
> required a long as input (It was a license control class that had a long key as
>input.). However,
> there seems to be no way to cause an integer that is bigger than what can be
>represented in C to
be
> converted. Here is the integer I needed to
> convert: -2398461842900206033. What I get is a message that states, "integer value
>too large to
> represent."
>
> To test this I constructed a simple Java example that had a method that expected a
>long and tried
to
> call it like this:
>
> % java::call LongTest {test long} -2398461842900206033
> integer value too large to represent
>
> What I did to solve the problem was to create a simple Java wrapper class that
>accepted a string
as
> input and converted it to a long and called the Java class I needed to call from
>inside the
wrapper.
> Is there a better solution? If not, should there be?
>
> Thanks,
>
> Dan
>
> -------------------------------------------------
> Dan R. Schenck mailto:[EMAIL PROTECTED]
> Business Unit Manager http://www.posc.org
> POSC, Suite 275
> 10777 Westheimer
> Houston, TX 77042
>
> voice: +1 (713) 267-5166 fax: +1 (713) 784-9219
> -------------------------------------------------
>
>
> ----------------------------------------------------------------
> The TclJava mailing list is sponsored by WebNet Technologies.
> To subscribe: send mail to [EMAIL PROTECTED]
> with the word SUBSCRIBE as the subject.
> To unsubscribe: send mail to [EMAIL PROTECTED]
> with the word UNSUBSCRIBE as the subject.
> To send to the list, send email to '[EMAIL PROTECTED]'.
> A list archive is at: http://www.findmail.com/listsaver/tcldallas/
>
----------------------------------------------------------------
The TclJava mailing list is sponsored by WebNet Technologies.
To subscribe: send mail to [EMAIL PROTECTED]
with the word SUBSCRIBE as the subject.
To unsubscribe: send mail to [EMAIL PROTECTED]
with the word UNSUBSCRIBE as the subject.
To send to the list, send email to '[EMAIL PROTECTED]'.
A list archive is at: http://www.findmail.com/listsaver/tcldallas/