close Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Changes between Version 2 and Version 3 of JCopChangelog


Ignore:
Timestamp:
04/26/2011 04:21:34 PM (10 years ago)
Author:
malte.appeltauer
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • JCopChangelog

    v2 v3  
    22* Layers are now instantiable. Like normal objects, they can override their default constructor and have to be instantiated. Example:
    33{{{
    4 with(new ContactLayer(myContact)) { ...}
     4  with(new ContactLayer(myContact)) { ...}
    55}}}
    6 
     6Older JCop programs will cause a compiler error:
     7{{{
     8  with(ContactLayer) { ...}
     9}}}
     10You can fix this effortless by defining a class variable:
     11{{{
     12private Layer ContactLayer = new ContactLayer();
     13...
     14  with(ContactLayer) { ...}
     15}}}