RE: [sv-bc] proposal for nested modules and interfaces


Subject: RE: [sv-bc] proposal for nested modules and interfaces
From: Kevin Cameron (sv-xx@grfx.com)
Date: Mon Jan 05 2004 - 14:37:20 PST


On Mon, 5 Jan 2004, Jonathan Bromley wrote:

> > Why would you want to implicitly instantiate a nested module
> > anyway?
>
> If you are writing the nested module to encapsulate some
> piece of local functionality, and you need that functionality
> only once, it seems pretty silly to have to instantiate it
> immediately after defining it.
>
> It also matches with the way modules get instantiated
> into $root (or whatever $root is called these days!); any
> uninstantiated portless module is a top-level and is
> therefore implicitly instantiated in the elaborated
> simulation. So, all your regular modules are in fact
> merely nested modules in $root...

$root is only instantiated once and has no parent, I don't think it's
really the same.

It seems like dangerous behavior to me since it could lead to
unnecessary stuff being instantiated without warning.

Kev.

> --
> Jonathan Bromley, Consultant
> Doulos Ltd. Church Hatch, 22 Market Place, Ringwood, Hampshire, BH24 1AW, UK
> Tel: +44 (0)1425 471223 Email: jonathan.bromley@doulos.com
> Fax: +44 (0)1425 471573 Web: http://www.doulos.com
>
> The contents of this message may contain personal views which
> are not the views of Doulos Ltd., unless specifically stated.
>



This archive was generated by hypermail 2b28 : Mon Jan 05 2004 - 16:03:47 PST