Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (16 sloc) 246 Bytes
# vim: ts=2 sw=2 noexpandtab
# Logical AND gate.
# a b out
# 0 0 0
# 1 0 0
# 0 1 0
# 1 1 1
package Ttl::And;
use Moose;
extends 'Ttl::Bin';
sub on_my_change {
my $self = shift;
warn 999;
$self->out( ($self->a() && $self->b()) || 0 );
}
1;
Jump to Line
Something went wrong with that request. Please try again.