NAME
Language::Befunge::Wrapping::LaheySpace - a LaheySpace wrapping
DESCRIPTION
LBW::LaheySpace
implements a wrapping as defined in befunge specs - ie, when hitting a bound of the storage, the ip reverses and backtraces until it bumps into another bound, and then it reverses one last time to keep its velocity.
CONSTRUCTOR
LBW::LaheySpace->new;
Creates a new LaheySpace wrapping.
PUBLIC METHODS
$wrapping->wrap( $storage, $ip )
Wrap $ip
in $storage
according to this module wrapping algorithm. See DESCRIPTION for an overview of the algorithm used.
Note that $ip
is already out of bounds, ie, it has been moved once by LBI.
As a side effect, $ip will have its position changed.
SEE ALSO
AUTHOR
Jerome Quelin, <jquelin@cpan.org>
COPYRIGHT & LICENSE
Copyright (c) 2001-2008 Jerome Quelin, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.