"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lib/RPerl/Learning.pm" between
RPerl-5.000000.tar.gz and RPerl-5.002000.tar.gz

About: RPerl is an optimizing compiler for the Perl 5 programming language (converting Perl 5 source code into C++).

Learning.pm  (RPerl-5.000000):Learning.pm  (RPerl-5.002000)
skipping to change at line 11751 skipping to change at line 11751
=for rperl X</noncode> =for rperl X</noncode>
I<SOLUTION: BAZ_SOLUTION> I<SOLUTION: BAZ_SOLUTION>
X<ENABLE_LIST_SPACING> X<ENABLE_LIST_SPACING>
=item * PROBLEM: BAZ_PROBLEM_LABEL =item * PROBLEM: BAZ_PROBLEM_LABEL
=for rperl X<noncode> =for rperl X<noncode>
ERROR ECOGEASCP879, CODE GENERATOR, ABSTRACT SYNTAX TO C++: Array dereferenc e of array reference must provide data type for array reference in CPPOPS_CPPTYP ES mode, but no data type provided, dying ERROR ECOGEASCP871, CODE GENERATOR, ABSTRACT SYNTAX TO C++: Array dereferenc e of array reference must provide data type for array reference in CPPOPS_CPPTYP ES mode, but no data type provided, dying
=for rperl X</noncode> =for rperl X</noncode>
I<SOLUTION: BAZ_SOLUTION> I<SOLUTION: BAZ_SOLUTION>
X<ENABLE_LIST_SPACING> X<ENABLE_LIST_SPACING>
=item * PROBLEM: Internal RPerl System Error, BAZ_PROBLEM_LABEL =item * PROBLEM: Internal RPerl System Error, BAZ_PROBLEM_LABEL
=for rperl X<noncode> =for rperl X<noncode>
skipping to change at line 18106 skipping to change at line 18106
have $i = 3 have $i = 3
have $j = 3 have $j = 3
have $k = 3 have $k = 3
=for rperl X</noncode> =for rperl X</noncode>
However, when we try to compile the source code, we experience an error: However, when we try to compile the source code, we experience an error:
=for rperl X<noncode> =for rperl X<noncode>
ERROR ECOGEASCP879, CODE GENERATOR, ABSTRACT SYNTAX TO C++: Array dereferenc e of array reference must provide data type for array reference in CPPOPS_CPPTYP ES mode, but no data type provided, dying ERROR ECOGEASCP871, CODE GENERATOR, ABSTRACT SYNTAX TO C++: Array dereferenc e of array reference must provide data type for array reference in CPPOPS_CPPTYP ES mode, but no data type provided, dying
=for rperl X</noncode> =for rperl X</noncode>
In non-compiled mode, the normal Perl interpreter will detect the context mismat ch and force an implicit context switch from the array C<@{[2, 4, 6]}> to the sc alar C<$k>. This same array-to-scalar context switch is achieved explicitly via the C<scalar> operator. Both implicit and explicit context switches have the s ame effect, an array value put into scalar context will simply return the number of array elements. In non-compiled mode, the normal Perl interpreter will detect the context mismat ch and force an implicit context switch from the array C<@{[2, 4, 6]}> to the sc alar C<$k>. This same array-to-scalar context switch is achieved explicitly via the C<scalar> operator. Both implicit and explicit context switches have the s ame effect, an array value put into scalar context will simply return the number of array elements.
The ability for Perl to guess and imply context is derived from high-magic featu res. Once again, the Low-Magic Perl Commandments are clear on the issue: The ability for Perl to guess and imply context is derived from high-magic featu res. Once again, the Low-Magic Perl Commandments are clear on the issue:
=over =over
=item * L<The 57th Low-Magic Perl Commandment|http://rperl.org/the_low_magic_per l_commandments.html#commandments_operations> =item * L<The 57th Low-Magic Perl Commandment|http://rperl.org/the_low_magic_per l_commandments.html#commandments_operations>
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)