Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Release Notes.png

Our team is excited to announce the following Breaking Changes for Power Custom Fields.


Contents

Table of Contents
minLevel1
maxLevel3
outlinefalse
typelist
printablefalse

Breaking changes for version 5.8.0.x

  • Introduction of null constant - Since the concept of a null constant was introduced in version 5.8.0+, any variables that may have been named ‘null' or ‘nil’ generate an error since those are now reserved keywords for the language.

  • Introduction of integer type - Due to the introduction of the integer typetypes, some values that were intended as numbers will be automatically interpreted as integers. This could cause the results of a calculation to lose all decimal values or cause the result to change due to rounding differences.

    Code Block
    return 3/2;

    In older SIL, the result would have been 1.5. In the new SIL, the result is 1 because the literals 3 and 2 are now integers. To maintain the same results, change the code to match the examples below:

    Code Block
    return 3.0/2.0;
    //or, explicity declare the type
    number x = 3;
    number y = 2;
    return x/y;

    The introduction of the integer type also has the following consequences:

    Code Block
    try {
       .....
       if( ... ) {
        throw 1; //integer!
       }
       if( .... ) {
        throw 2; //these are integers literals now
       }
    } catch integer i {
      //you need to add this block in order to deal with the above throws
    } catch number n {
      //you need to move code from here in the above block!
    }
    •  Packages - We added “package” and “use“ keywords. the following keywords:

      • Package

      • Use
        Please do not implement

      “use“ and “package“
      • these words as variable names.


Questions.png Questions and feedback

  • Explore exciting features, pricing updates, reviews, and more on the Marketplace.

  • Stuck with something? Raise a ticket with our support team.

  • Do you love using our app? Let us know what you think here.

Credits.png Credits

A heartfelt thank you to our valued customers! Your incredible support and feedback inspire us to improve our apps and products continually. You are the driving force behind why we create software. We appreciate your trust in Power Custom Fields!

Page Properties
hiddentrue
idrelease_details

Highlights

  • Introduction of null constant - Any variables that may have been named ‘null' or ‘nil’ generate an error.

  • Introduction of integer type - Update to how integers are interpreted.