function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Mar1BMar1B 

using Namespaces when invoking methods SYSTEM.SYSTEM.DEBUG()

Hi All,

 

It's mentionned in the Force.com Apex Developer's guide (Winter '13) to use the special namespace System to disambiguate the built-in static classes from any user-defiend ones.

 

It also gives as exemple:  SYSTEM.SYSTEM.DEBUG()

 

Does anybody try to override system static class names like Math or System? it is possible according to the doc, but anytime I try to create a static class named System (even using API v10) I got the compile error: Identifier name is reserved

 

Thanks in advance

 

Mar1B

sfdcfoxsfdcfox

Math is no longer reserved, but system still is. It'll probably be patched later.