view src/tests/forward02.d @ 839:4063da6f3edd default tip

Refactored the config file and how it is loaded.
author Aziz K?ksal <aziz.koeksal@gmail.com>
date Thu, 21 Aug 2008 17:51:04 +0200
parents bcb74c9b895c
children
line wrap: on
line source

/++
  Author: Jari-Matti Mäkelä
+/

// Valid circular composition because of pointer.
struct A { B* b; }
struct B { A a; }
// Equivalent to:
struct A { A* a; }

// Valid circular composition because classes are reference types.
class C { D d; }
class D { C c; }