[% setvar title pack/unpack C-like enhancements %]

This file is part of the Perl 6 Archive

Note: these documents may be out of date. Do not use as reference!

To see what is currently happening visit http://www.perl6.org/

TITLE

pack/unpack C-like enhancements

VERSION

  Maintainer: Ilya Zakharevich <ilya@math.ohio-state.edu>
  Date: 16 September 2000
  Mailing List: perl6-language-data@perl.org
  Number: 247
  Version: 1
  Status: Developing

ABSTRACT

This RFC proposes C-like syntactic sugar to templates of pack/unpack.

DESCRIPTION

An alternative style of type specifiers is allowed in pack()/unpack() TEMPLATEs. This style is used in the parts of the TEMPLATE enclosed in braces, as in '{ C_STYLE_TEMPLATE }'. Optionally, if TEMPLATE starts with 'struct {' (with possible intervening whitespace and comments) struct is ignored.

When this style is in scope, then

MIGRATION ISSUES

None.

IMPLEMENTATION

Straightforward.

REFERENCES

RFC 142: Enhanced Pack/Unpack

RFC 246: pack/unpack uncontrovercial enhancements