RE: [sv-ec]E-mail Vote: Closes 12am PST December 15 2007

From: Mark Hartoog <Mark.Hartoog_at_.....>
Date: Mon Dec 17 2007 - 08:58:27 PST
From: Gordon Vreugdenhil [mailto:gordonv@model.com] 
> The consensus of the group was that the more dynamic forms were
preferable -- the set of rules 
> in play for inline constraints are the prime example.  I've conceded
to that desire and now
> just want things to be consistent.  Yet here you want something
irregular with the rest of 
> the resolution.  Why would you want such an ad hoc approach?  Or are
you suggesting that we 
> re-open the entire discussion again?
>
> I still have yet to here any reason for why "this.x" and "x"
> pose different problems and why "this.x" is so difficult.

I believe that 'this' is a class handle and should be treated consistent
with
the way other class handles are treated.

class A;
  int x;
endclass

class B;
  int y;
endclass

A v = new;

function void f();
  B v = new;
  $display(v.x); // This should be an error
endfunction

In this case, you cannot resolve 'x' in class 'B'. You do not keep
looking in the outer scope for another class handle 'v'.

I don't see why 'this' should be treated any differently. 

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Mon Dec 17 08:59:02 2007

This archive was generated by hypermail 2.1.8 : Mon Dec 17 2007 - 08:59:25 PST