Scheme Programmer's Manual
endianness - quote an endianness symbol
(import (rnrs)) ;R6RS
(import (rnrs bytevectors)) ;R6RS
syntax quotes the
while ensuring that it is one of the supported endiannesses in the
An implementation must
support at least the symbols
but may support other endianness symbols.
- Larcency Scheme
Using this syntax causes a deprecation warning to be printed.
This syntax evaluates to one of the supported endianness symbols.
This is used as an argument to bytevector procedures.
The native endianness is not included as an option, like it was in
SRFI-74. It would have unnecessarily caused the expansion of a program
to depend on the machine on which it's expanded.
It is impossible to tell if a new endianness will become popular in
the future, so extensions are allowed.
This syntax works the same everywhere that it's supported (but see
Implementation Notes above).
This syntax can raise exceptions during expansion with the following
- &syntax-violation (R6RS)
The wrong number of operands was given or the operand was not a supported
This syntax is new for R6RS and first appeared in SRFI-74.
There have been mixed-endianness machines, such as the PDP-11, which
do not fit as either big or little.
This page is part of the
It includes materials from the RnRS documents.
More information can be found at
Return to Main Contents
- IMPLEMENTATION NOTES
- APPLICATION USAGE
- SEE ALSO