Language::Befunge::Wrapping - base wrapping class


Language-Befunge documentation Contained in the Language-Befunge distribution.

Index


Code Index:

NAME

Top

Language::Befunge::Wrapping - base wrapping class

DESCRIPTION

Top

LBW implements a wrapping that dies. It's meant to be overridden by other wrapping classes.

CONSTRUCTOR

Top

LBW->new;

Creates a new wrapping object.

PUBLIC METHODS

Top

$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

Top

Language::Befunge.

AUTHOR

Top

Jerome Quelin, <jquelin@cpan.org>

COPYRIGHT & LICENSE

Top


Language-Befunge documentation Contained in the Language-Befunge distribution.

#
# This file is part of Language::Befunge.
# Copyright (c) 2001-2009 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.
#
#

package Language::Befunge::Wrapping;

use strict;
use warnings;

# -- CONSTRUCTOR

use Class::XSAccessor constructor => 'new';


# -- PUBLIC METHODS

#
# $wrapping->wrap( $storage, $ip );
#
# Wrap $ip in $storage according to this module wrapping algorithm. 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.
#
# LBW implements a wrapping that dies. It's meant to be overridden by
# other wrapping classes.
#
sub wrap { die 'wrapping not implemented in LBW'; }

1;
__END__