bug-kawa
[Top][All Lists]
Advanced

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

[Bug-kawa] [bug #16594] Prefix-colon syntax: Warn when generating expens


From: Dean Ferreyra
Subject: [Bug-kawa] [bug #16594] Prefix-colon syntax: Warn when generating expensive runtime lookups
Date: Mon, 15 May 2006 12:42:57 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.3) Gecko/20060426 Firefox/1.5.0.3

URL:
  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=16594>

                 Summary: Prefix-colon syntax: Warn when generating expensive
runtime lookups
                 Project: Kawa
            Submitted by: dferreyra
            Submitted on: Monday 05/15/2006 at 12:42
                Category: None
                Severity: 3 - Normal
              Item Group: Feature Request
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open

    _______________________________________________________

Details:

In this example:

  (module-static #t)
  
  (define-simple-class <A> ()
    ((an-identity-meth name)
     name)
    )
  
  (define a (<A>))
  
  ;; Inexpensive:
  ((as <A> a):anIdentityMeth 'foo)
  ;; Expensive:
  (a:anIdentityMeth 'foo)
  ;; Expensive:
  (*:anIdentityMeth a 'foo)

the last call gives the following warning, letting us know that an expensive
runtime lookup will be performed for each invocation:

  types.scm:15:1: warning - no accessible method 'anIdentityMeth' in
java.lang.Object

The feature request is that the second-to-the-last call also give us a
warning.






    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=16594>

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





reply via email to

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