Bugs item #2804755, was opened at 2009-06-11 12:34
Message generated for change (Tracker Item Submitted) made by elmuerte
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=565849&aid=2804755&group_id=82370

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Compiletime - Core
Group: SVN
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Michiel Hendriks (elmuerte)
Assigned to: Nobody/Anonymous (nobody)
Summary: Constructor messages not processed

Initial Comment:
Creating a new object could also be seen as a message being send. However, 
there are various issues:

1) Selector value
What is the selector value of a constructor message? This can not be the name 
of the class, because that requires knowing the name of the class when defining 
the matching expression. So this needs a special construction.

filtermodule ObserveCtors
{
  inputfilters
    flt : LogFilter = ( selector == "..." ); // what should "..." be to select 
constructors?
}

superimposition
{
  selectors
    cls = { C | isClassWithAnnotation(C, 'WatchMe');
  filtermodules
    cls <- ObserveCtors;
}

2) Receiver status
If the constructor message is intercepted before the constructor is called 
(just like with all other message) then there is no receiver context. If the 
message is processed after the constructor was called you can override the 
object construction. 

3) Constructor delegation
Is it possible to delegate a constructor call to a different target? This 
target couldn't be a constructed Object.

filtermodule TypeReplace
{
   inputfilters
     sync : Dispatch = (target ~= java.util.StringBuffer && selector == "...") 
{ target = java.util.StringBuilder; }
}

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=565849&aid=2804755&group_id=82370

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Composestar-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/composestar-developers

Reply via email to