Subject: [sv-cc] Re: Version 2 of DPI LRM
From: Stickley, John (john_stickley@mentorg.com)
Date: Tue Mar 11 2003 - 17:22:14 PST
Andrzej,
The changes to the examples aren't that important.
I had just read the comments you placed on them and
tried to show what they said with some surrounding
statements.
Namely that one export decl was located in a global (root)
scope and that the other was located in a module scope.
Also to demonstrate cname aliasing in at least one of them.
-- johnS
Andrzej Litwiniuk wrote:
>>Will you be able to incorporate John's comments into the LRM drafts?
>
>
> No problem, with the execption of Section 1.7 Examples. I'd rather not touch
> them, I'm not sure I understood John's intent.
>
> I'll incorporate all of them but the following one.
>
> Andrzej
>
>
>>>------------------------------------------------------
>>>Section 1.7
>>>
>>>2nd from last sentence on page 9:
>>>
>>>"cname is optional here, it defaults to fname (for example,
>>>for functions defined in the $root scope)."
>>>
>>>I'm not sure what is in parentheses has anything to do with
>>>cname defaulting to fname. Why is it in here ? I suggest we remove it.
>>>
>>>------------------------------------------------------
>>>Section 1.7 Examples at end of section.
>>>
>>>I suggest making one of these examples use an aliased cname.
>>>
>>>I would also show module scope context here to illustrate
>>>what is being said in the comments. May I suggest something like this:
>>>
>>>export "DPI" global_func; // export decl. and global_func
>>>defined in $root void global_func(args ...) begin
>>> ...
>>>end
>>>
>>>module bar();
>>> export "DPI" Cfoo=foo; // export decl. and foo defined
>>>in same scope
>>> void foo(args ...) begin
>>> ....
>>> end
>>>endmodule
>>
--This email may contain material that is confidential, privileged and/or attorney work product for the sole use of the intended recipient. Any review, reliance or distribution by others or forwarding without express permission is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies. __ ______ | \ ______________________/ \__ / \ \ H Dome ___/ | John Stickley E | a __ ___/ / \____ Principal Engineer l | l | \ / Verification Solutions Group | f | \/ ____ Mentor Graphics Corp. - MED C \ -- / / 17 E. Cedar Place a \ __/ / / Ramsey, NJ 07446 p | / ___/ | / / mailto:John_Stickley@mentor.com \ / Phone: (201)818-2585 \ / ---------
This archive was generated by hypermail 2b28 : Tue Mar 11 2003 - 17:24:26 PST