Re: Problème avec des with



"Grein, Christoph (Fa. ESG)" <Christoph.Grein@xxxxxxxxxxxxxx> wrote in
message news:mailman.31.1201682756.3834.comp.lang.ada@xxxxxxxxxxxxxxxxx
This is an English news group. Il y a un autre groupe francais.

Well, English speaking ;-)

Use limited with or use with on the bodies. Depends on your design which
to use.

As Christoph noted, the solution depends on what the dependency between the
packages is. Generally it is a good idea to post actual code that
demonstrates your problem so that a more precise answer can be given.

To expand on Christoph's information - generally, if the specifications do
not need the other package, place the 'with' on the body. If the
specifications do depend on each other, look very carefully at your design
to check that the circular dependency is justified; if it is [and the nature
of the dependency is restricted to needing the types from the other package]
use "limited with" [new to Ada 05].

The "limited with" is illustrated in the online John Barnes material:
http://www.adaic.org/standards/05rat/html/Rat-1-3-3.html

--
Stuart


.



Relevant Pages

  • Re: dip Notions 2 Major Errors
    ... primary arguments against the DIP are as follows: ... applying the DIP never changes the dependency so that 'y ... To the extent that the DIP inverts dependencies at the package level, ... That's a form of inversion, ...
    (comp.object)
  • PHP Classes suggestions (was Re: Recommendations for PHP Form Validation Script)
    ... Class dependency is not hard. ... you locate the dependency package and then copy it to the clipboard. ... I don't know for other developers, ... I believe in opening the source code of projects when the advantages ...
    (comp.lang.php)
  • Re: dip Notions 2 Major Errors
    ... B has incoming dependency from class A' becomes 'class B has outgoing ... The inversion lies in the fact that the relation in which class B ... This inversion is important in the DIP, for the DIP calls for depending on ... 'package x depends on package y' becomes 'package y depends ...
    (comp.object)
  • Re: Is there a UNIX standard for where to install local tools?
    ... First, you loose dependency tracking. ... Very old Red Hats with RPM package manager could encounter such problem. ... I realize most distributions install it. ... in the world out there more people use package managers ...
    (comp.unix.shell)
  • Re: Recommendations for PHP Form Validation Script
    ... Regardless how the authors upload ... You are right - dependency may look simple on its face, ... so that when a package is updated, ... for the filenames that are already present in the package, ...
    (comp.lang.php)