bug-kawa
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-kawa] [bug #44718] better inlining in interactive mode


From: Per Bothner
Subject: [Bug-kawa] [bug #44718] better inlining in interactive mode
Date: Sat, 04 Apr 2015 00:24:01 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.101 Safari/537.36

URL:
  <http://savannah.gnu.org/bugs/?44718>

                 Summary: better inlining in interactive mode
                 Project: Kawa
            Submitted by: bothner
            Submitted on: Sat 04 Apr 2015 12:24:00 AM GMT
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: Confirmed
                 Privacy: Public
             Assigned to: bothner
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

Consider defining these in a REPL (or loading with -f):
<pre>
(define (f a b) (and (neg a) (neg b)))
(define (g a b) (if (neg a) (neg b) #t))
(define (h a b) (or (neg a) (neg b)))
(define (i a b) (if (neg a) #t (neg b)))
</pre>
The return type for g is Object - but should be boolean.
A related problem is that the call to neg is compiled to accessing the field
for neg, rather than calling the method.
Fixing this would probably result in worse handling for redefinitions (i.e. if
neg is re-defined to a different function), so fix this after we have a better
store for interactive redefinition.




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?44718>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]