Use of [noDefaultConstructor]
Posted: 6 Jan 2016 15:18
The Language Reference is not completely clear on use of noDefaultConstructor. It took me a while to sort out that it needs to follow the open statements. Perhaps the LR could be clarified on the next iteration of VIP.
This compiles without error:
Code: Select all
class graphParms : graphParms
[noDefaultConstructor]
open core % <== SYNTAX ERROR HERE
open vpiDomains
constructors
new : ( string GraphTypeID ).
new_fromFile : ( string QFN ).
Code: Select all
class graphParms : graphParms
open core
open vpiDomains
[noDefaultConstructor] % <== Must follow 'open' statements
constructors
new : ( string GraphTypeID ).
new_fromFile : ( string QFN ).