Re: [sv-bc] Is an unnamed block with declarations a scope?

From: Cliff Cummings <cliffc_at_.....>
Date: Thu Aug 11 2005 - 20:33:30 PDT
Hi, All -

No need to reply to my email address. I will continue to read the thread
on sv-bc@eda.org (one copy in my email inbox is enough).

I have no great attachment to declarations in unnamed blocks. I thought
they were there for those who did not want to name everything and who did
not expect to have hierarchical reference to the local variables.

If we decide to get rid of them, we should do so soon and get Stu and I to
quick-email our SV students to notify them of the pending change (I have
been showing the construct, noting the capability, but only on one slide
and with no great emphasis that anyone should do this).

As far as variable protection goes, could this be easily addressed by
using the same "local" and "protected" keywords that are used in class
data declarations for the same purpose?

Isn't module nesting also used to eliminate a hierarchical path to local
variables? (I'm not crazy about module nesting either). Seems like the
only good reason for module nesting is to put a visible wrapper around a
module that one intends to encrpyt. Any other good uses for nested
modules?

Regards - Cliff
Received on Thu Aug 11 20:33:35 2005

This archive was generated by hypermail 2.1.8 : Thu Aug 11 2005 - 20:36:05 PDT