EDAboard.com | EDAboard.eu | EDAboard.de | EDAboard.co.uk | RTV forum PL | NewsGroups PL

*Error* def : function is write protected and cannot be rede

elektroda.net NewsGroups Forum Index - Cadence - *Error* def : function is write protected and cannot be rede

RC MURALI
Guest

Mon Jan 18, 2010 12:11 pm   



Hi,

I am getting the following message in icfb CIW, if I try to reload any
of my skill utilites.

*Error* def : function is write protected and cannot be redefined

How to get rid of this?

Thanks & Regards,
Murali RC

Andrew Beckett
Guest

Mon Jan 18, 2010 3:06 pm   



RC MURALI wrote, on 01/18/10 10:11:
Quote:
Hi,

I am getting the following message in icfb CIW, if I try to reload any
of my skill utilites.

*Error* def : function is write protected and cannot be redefined

How to get rid of this?

Thanks & Regards,
Murali RC

I'm guessing you have:

sstatus(writeProtect t)

in your .cdsinit or in your code somewhere. If you don't add this, then
functions will not be write protected.

Note that write protection is stored on the function at the time it is created -
so it's no good to just enter:

sstatus(writeProtect nil)

after the function is defined - it honours whatever status it was at definition
time.

You can also switch to debug mode, and then write protected functions can be
overwritten:

sstatus(debugMode t)

Regards,

Andrew.

RC MURALI
Guest

Tue Jan 19, 2010 6:50 am   



On Jan 18, 7:06 pm, Andrew Beckett <andr...@DcEaLdEeTnEcTe.HcIoSm>
wrote:
Quote:
RC MURALI wrote, on 01/18/10 10:11:

Hi,

I am getting the following message in icfb CIW, if I try to reload any
of my skill utilites.

*Error* def : function is write protected and cannot be redefined

How to get rid of this?

Thanks & Regards,
Murali RC

I'm guessing you have:

sstatus(writeProtect t)

in your .cdsinit or in your code somewhere. If you don't add this, then
functions will not be write protected.

Note that write protection is stored on the function at the time it is created -
so it's no good to just enter:

sstatus(writeProtect nil)

after the function is defined - it honours whatever status it was at definition
time.

You can also switch to debug mode, and then write protected functions can be
overwritten:

sstatus(debugMode t)

Regards,

Andrew.


Thanks Andrew. It worked.

Where can I find the name of the different Internal System Variables?

Say in this case, we have used "debugMode" "writeProtect".

Andrew Beckett
Guest

Tue Jan 19, 2010 1:44 pm   



RC MURALI wrote, on 01/19/10 04:50:
Quote:


Thanks Andrew. It worked.

Where can I find the name of the different Internal System Variables?

Say in this case, we have used "debugMode" "writeProtect".

Open the documentation (cdnshelp in IC61X, and cdsdoc in IC5141) and search for
"sstatus". Or search for writeProtect.

Or look in <ICinstDir>/doc/sklangref/sklangref.pdf or
<ICinstDir>/doc/sklanguser/sklanguser.pdf (the same manuals that the search
above will use).

Did you try looking in the documentation?

Regards,

Andrew.

RC MURALI
Guest

Thu Jan 21, 2010 6:27 am   



On Jan 19, 5:44 pm, Andrew Beckett <andr...@DcEaLdEeTnEcTe.HcIoSm>
wrote:
Quote:
RC MURALI wrote, on 01/19/10 04:50:



Thanks Andrew. It worked.

Where can I find the name of the different Internal System Variables?

Say in this case, we have used "debugMode" "writeProtect".

Open the documentation (cdnshelp in IC61X, and cdsdoc in IC5141) and search for
"sstatus". Or search for writeProtect.

Or look in <ICinstDir>/doc/sklangref/sklangref.pdf or
ICinstDir>/doc/sklanguser/sklanguser.pdf (the same manuals that the search
above will use).

Did you try looking in the documentation?

Regards,

Andrew.

Thanks. I got it.

elektroda.net NewsGroups Forum Index - Cadence - *Error* def : function is write protected and cannot be rede

Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
RTV map EDAboard.com map News map EDAboard.eu map EDAboard.de map EDAboard.co.uk map Opony