Loading ...
Sorry, an error occurred while loading the content.

45723RE: Two minor requests for the TODO list

Expand Messages
  • Eggum, DavidX S
    Dec 7, 2006
    • 0 Attachment
      > How about adding this:
      > get({string} [, {default}])
      >                                 Get value from variable {string}.  When this variable does not
      >                                 exist, return {default}.  Return zero when {default} is
      >                                 omitted.

      Hmmm.... we could follow the more succinct gmake way of doing things and add a new operator instead (I like this solution better):

      :let {var} ?= {expr} This is a conditional variable assignment operator,
      it only has an effect if the variable is not yet
      defined. This statement:

      let foo ?= "bar"

      is exactly equivalent to this:

      if !exists("foo")
      let foo = "bar"


      "Love is what's in the room with you at Christmas if you stop opening presents and listen."

      Bobby - age 7
    • Show all 5 messages in this topic