Skip to content

0.44.0: Drop the `value:` parameter name from the various PackedArray.* append

Compare
Choose a tag to compare
@migueldeicaza migueldeicaza released this 10 Jul 18:45
· 79 commits to main since this release
  • New IntersectRayResult strong type from Estevan Hernandez

  • Generates various native_structures, and also surfaces a handful of
    APIs that take pointers (those that exposed 'const void*' and
    'AudioFrame*') and were not available before. Additioanl
    pointer-based APIs will come, but there are some ambiguities and
    areas where we could surface a better API than just pointers, so I
    am explicitly going slow here, to avoid having to write a lot of
    additional compatibility hacks later.

  • The append methods in PackedArray classes no longer take a "value: "
    parameter, although a version is kept for compatibility.

  • The append methods now use the natural type for the array they
    contain, which should reduce the amount of casts necessary. That
    is, in the past we surfaced "append(value: Int64)" for the
    PackedArrayInt32, which was odd.

    Now:

    • PackedByteArray.append takes a UInt8
    • PackedFloat32Array.append takes a Float
    • PackedInt32Array.append takes a Int32