phil Posted February 9, 2013 Report Share Posted February 9, 2013 Hi: is there a way to pass "this" (or other means that represent the calling object handle) as an argument to a function, in SystemVerilog? Here is this unexpected situation: There is a function: func(class1 obj1, class2 obj2); inside class1, there is a function foo(), calling func(). Class1::foo(); void' func(this, obj2); endfunction But surprisingly to me, it is illegal, because "this" is not a variable, as told by the compiler. So is there a way to pass the handle of the calling object as an argument to a function? if not, is there a work around? Thanks phil Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.