GpStuff 17.slon
Delphi  
requires:
Version 1.06
   
used in:
2007-06-13
 
Various stuff: Trinary operator, clone-on-assignment functions and more.

Five overloaded functions (all named IFF) that allow for simple conditional expression evaluation but don't offer full functionality of the ?: operator.

Although IFF can be used in expressions like a := IFF(b > 0, 2*b, b div 2), it has the deficiency of all its parameters being evaluated every time. That makes it impossible to use IFF when one of the parameters cannot be evaluated like in a := IFF(b <> 0, 1/b, 0) (in that case because 1/b is evaluated even when b is zero).

Also contains four overloaded Asgn functions that clone an input parameter to output parameter and function result.

Plus more - read the source.

Released under the BSD License.

Files

Last modifications

1.06: 2007-06-13

  • ReverseCardinal renamed to ReverseDWord.
  • Added function ReverseWord.

1.05: 2007-04-12

  • First public release.
 
Last update: 2007-10-15
Google
Search:WWW17slon.com17slon.net