[system] / trunk / pg / lib / Parser / UOP.pm Repository:
ViewVC logotype

Diff of /trunk/pg/lib/Parser/UOP.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 2606 Revision 2607
111 return 1; 111 return 1;
112} 112}
113 113
114 114
115# 115#
116# Determine if the operand is an infinity and set the type
117#
118sub checkInfinite {
119 my $self = shift;
120 my $uop = $self->{equation}{context}{operators}{$self->{uop}};
121 return 0 unless $self->{op}->{isInfinite} && $uop->{allowInfinite};
122 $self->{type} = $self->{op}->typeRef;
123 return 1;
124}
125
126#
116# Determine if the operand is a number, and set the type 127# Determine if the operand is a number, and set the type
117# to complex or number according to the type of operand. 128# to complex or number according to the type of operand.
118# 129#
119sub checkNumber { 130sub checkNumber {
120 my $self = shift; 131 my $self = shift;

Legend:
Removed from v.2606  
changed lines
  Added in v.2607

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9