On Thu, Aug 21, 2008 at 2:55 PM, Gregory Vanuxem <[EMAIL PROTECTED]> wrote: > Many thanks for the fix but unfortunately I just found another bug: > computation time printed after issuing ')set message time on' in the > interpreter is always 0. > > In g-timer.boot, line 227, if I replace > > 1.* QUOTIENT(currentTime-$oldElapsedTime-gcDelta,$timerTicksPerSecond) > by > 1.*(currentTime-$oldElapsedTime-gcDelta)/$timerTicksPerSecond > > the problem goes away. I have no idea why. Am I missing something ?
What is happening is that `/' computes a ratio (rational number) when its arguments are integers. So, to get an integer we use QUOTIENT. However that operation gives the quotient of the euclidean division. But if you multiply a ratio by a floating point, you get a floating point back, which explains why you see the `expected' result if you use `/' instead of QUOTIENT. The key here is the `1.0' factor. I'll commit that patch. Thanks! -- Gaby > > Regards, > > Greg > > Le jeudi 21 août 2008 à 11:15 -0500, Gabriel Dos Reis a écrit : >> Gregory Vanuxem <[EMAIL PROTECTED]> writes: >> >> | Hello, >> | >> | A small bug remains with the 'cd' system command when trying to change >> | the working directory to a non existing one: >> | >> | (1) -> )cd Spda >> | >> | debugger invoked on a SB-INT:SIMPLE-FILE-ERROR in thread #<THREAD >> | "initial thread" RUNNING {100456A3B1}>: >> | failed to find the TRUENAME of Spda: No such file or directory >> | >> | Type HELP for debugger help, or (SB-EXT:QUIT) to exit from SBCL. >> | >> | (no restarts: If you didn't do this on purpose, please report it as a >> | bug.) >> | >> | (SB-IMPL::SIMPLE-FILE-PERROR "failed to find the TRUENAME of ~A" "Spda" >> | 2) >> | 0] :ba 7 >> | >> | 0: (SB-IMPL::SIMPLE-FILE-PERROR "failed to find the TRUENAME of ~A" >> | "Spda" 2) >> | 1: (SB-IMPL::SIMPLE-FILE-PERROR "failed to find the TRUENAME of ~A" >> | "Spda" 2)[:EXTERNAL] >> | 2: ((FLET SB-IMPL::FAIL) "failed to find the TRUENAME of ~A" "Spda" 2) >> | 3: (SB-IMPL::QUERY-FILE-SYSTEM "Spda" :TRUENAME T) >> | 4: (SB-IMPL::QUERY-FILE-SYSTEM "Spda" :TRUENAME)[:EXTERNAL] >> | 5: (TRUENAME "Spda") >> | 6: (|cd| (|Spda|)) >> | >> | Regards, >> | >> | Greg >> >> Hi Greg, >> >> Thanks for the report. The problem you report is much wider than >> illustrated on your funny directory :-) Actually, everytime the >> underlying Lisp system hits an error, it would drop you into the >> debugger. I don't want users to think that they are programming in >> Lisp. So, I've committed a fix to both 1.2-branch and trunk. >> Unless a last minute showstaopper pops up, I think we are set to >> release OpenAxiom-1.2.0 by tomorrow. >> >> Thanks! >> >> -- Gaby >> > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > open-axiom-devel mailing list > open-axiom-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/open-axiom-devel > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ open-axiom-devel mailing list open-axiom-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/open-axiom-devel