Skip to content
Snippets Groups Projects
  1. May 31, 2020
  2. Nov 03, 2019
    • Peter Bortas's avatar
      Add "->?" as the safe indexing variant of "->" · dbe276f1
      Peter Bortas authored
      This was earlier covered by "?->", but this is inconsistent with the
      "[?" index variant and the future "(?" program indexing variant.
      
      Usage of "?->" will start emitting a deprication warning is some
      future major version of Pike.
      
      Manual backport from master: 19582df8,
      because the conflict was too big to bother with cherry-pick.
      dbe276f1
  3. Mar 22, 2015
  4. Oct 22, 2014
  5. Oct 21, 2014
  6. Sep 03, 2014
  7. Aug 24, 2014
  8. May 10, 2014
  9. May 06, 2014
  10. Apr 27, 2014
  11. Feb 26, 2014
  12. Jan 12, 2014
  13. Dec 11, 2013
    • Per Hedbor's avatar
      Merged the "ph/bits" branch. · e04ce109
      Per Hedbor authored
      This allows one more syntax for int-ranges in types:
      
      (Xbit): This reprensents the range (0..(1<<X)-1).
      
      So, string(8bit) is identical to string(0..255) and string(16bit) is
      string(0..65535).
      
      The same is true for integers, int(3bit) is int(0..7).
      
      This does not conflict with any existing code because identifiers can
      not start with a number.
      e04ce109
  14. Nov 03, 2013
  15. Jun 08, 2013
  16. Jan 08, 2013
  17. Nov 03, 2012
  18. Oct 02, 2012
    • Per Hedbor's avatar
      Added a two new operators: "?->" and "?:" · 0ad650bf
      Per Hedbor authored
      ?-> can be used to index something that is either indexable or null.
      ?: is an alias for ||
      
      Very useful for things like:
      
      C c = a && a->b && a->b->c;
      
      which can now be rewritten as
      
      C c = a?->b?->c;
      
      The code in language.yacc also supports ?. and ?[], but there are
      syntax conflicts with ?: for those:
      
      ?. conflicts with expr?.Module:...
      ?[] conflicts wtih expr?[softcast]:...
      
      ?: was added mostly to be compatible with other 'modern' C-like
      languages.
      0ad650bf
  19. Jul 22, 2012
  20. Jan 12, 2012
  21. Nov 05, 2011
  22. Oct 28, 2011
  23. May 05, 2011
  24. Apr 25, 2011
  25. Apr 15, 2009
  26. Jul 22, 2008
  27. Jun 29, 2008
  28. Jun 28, 2008
  29. Jun 18, 2008
Loading