- PUBLIC METHODS
- EXTERNAL METHODS
- SEE ALSO
- COPYRIGHT AND LICENSE
Language::Befunge::Storage::Generic::AoA - a generic N-dimensional LaheySpace
# create a 3-dimensional LaheySpace. my $torus = Language::Befunge::Storage::Generic::AoA->new(3); $torus->clear(); $torus->store(<<"EOF"); 12345 67890 \fabcde fghij EOF
Note you usually don't need to use this module directly. Language::Befunge::Interpreter uses it internally, for non-2-dimensional storage. For 2-dimensional storage, Language::Befunge::Storage::2D is used instead, because it is more efficient.
This module implements an N-dimensional storage space, as an array of arrays.
Creates a new Lahey Space.
Clear the torus.
Expand the torus to include the provided point.
Return the number stored in the torus at the specified location. If the value hasn't yet been set, it defaults to the ordinal value of a space (ie, #32).
/!\ As in Funge, code and data share the same playfield, the number returned can be either an instruction or a data (or even both... Eh, that's Funge! :o) ).
Write the supplied value in the torus at the specified location.
/!\ As in Funge, code and data share the same playfield, the number stored can be either an instruction or a data (or even both... Eh, that's Funge! :o) ).
Several methods are inherited from the Language::Befunge::Storage base class. These methods are:
store store_binary get_char get_dims rectangle min max labels_lookup _labels_try
Please see the documentation of that module for more information.
None known. Please inform me if you find one.
This software is copyright (c) 2003 by Jerome Quelin.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.