Note: This website is archived. For up-to-date information about D projects and development, please visit wiki.dlang.org.

Changes between Version 1 and Version 2 of BasicUsage

Show
Ignore:
Author:
dhasenan (IP: 69.117.160.134)
Timestamp:
03/27/10 12:45:50 (14 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • BasicUsage

    v1 v2  
    55{{{ 
    66#!d 
     7import dconstructor.build2; 
    78class MyClass {} 
    89void main () 
    910{ 
    10     builder().register!(MyClass); 
     11    builder.register!(MyClass); 
    1112} 
    1213}}} 
    1920void main () 
    2021{ 
    21     builder().bind!(Interface, MyClass); 
     22    builder.bind!(Interface, MyClass); 
    2223} 
    2324}}} 
    4041void main () 
    4142{ 
    42     MyClass instance = builder().get!(MyClass); 
     43    MyClass instance = builder.get!(MyClass); 
    4344} 
    4445}}}