# New Ticket Created by curtis_ovid_...@yahoo.com # Please include the string: [perl #116777] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=116777 >
Hi there, The following appears to be a bug: % perl6 >> ($_ if $_.is-prime for 1 .. 10 ); >2 3 5 7 >> ($_ if $_.is-prime for 1 .. 10 ); >2 3 5 7 >> ($_ if $_.is-prime for 1 .. 10 ); >2 3 4 5 6 7 8 9 10 >% perl6 -v >This is perl6 version 2013.01-117-g8369e63 built on parrot 4.10.0 revision >RELEASE_4_10_0 Build perl6 -V below. Cheers, Ovid % perl6 -V parrot::git_describe=RELEASE_4_10_0 parrot::sha1=08a70fe50d07fc932b5505b13f09fa74b01622e9 parrot::a=.a parrot::ar=ar parrot::ar_extra= parrot::ar_out= parrot::archname=darwin-2level parrot::arflags=cr parrot::as=as parrot::backtrace=1 parrot::bigendian=0 parrot::bindir=/Users/curtispoe/projects/rakudo/install/bin parrot::bison_version= parrot::blib_dir=blib/lib parrot::build_dir=/Users/curtispoe/projects/rakudo/parrot parrot::byteorder=12345678 parrot::cat=$(PERL) -MExtUtils::Command -e cat parrot::cc=cc parrot::cc_debug= parrot::cc_exe_out=-o parrot::cc_inc=-I./include -I./include/pmc parrot::cc_ldflags= parrot::cc_o_out=-o parrot::cc_shared= parrot::ccflags=-fno-common -pipe -fstack-protector -pipe -fno-common -isystem /opt/local/include -DHASATTRIBUTE_CONST -DHASATTRIBUTE_DEPRECATED -DHASATTRIBUTE_MALLOC -DHASATTRIBUTE_NONNULL -DHASATTRIBUTE_NORETURN -DHASATTRIBUTE_PURE -DHASATTRIBUTE_UNUSED -DHASATTRIBUTE_WARN_UNUSED_RESULT -DDISABLE_GC_DEBUG=1 -DNDEBUG -DHAS_GETTEXT -I/opt/local/lib/libffi-3.0.11/include parrot::ccwarn=-funit-at-a-time -Wall -Wextra -Waggregate-return -Wcast-align -Wcast-qual -Wdisabled-optimization -Wdiv-by-zero -Wendif-labels -Wformat-extra-args -Wformat-nonliteral -Wformat-security -Wformat-y2k -Wimplicit -Wimport -Winit-self -Winline -Winvalid-pch -Werror=missing-braces -Wmissing-declarations -Wno-missing-format-attribute -Wmissing-include-dirs -Wmultichar -Wpacked -Wpointer-arith -Wreturn-type -Wsequence-point -Wsign-compare -Wstrict-aliasing -Wstrict-aliasing=2 -Wswitch -Wswitch-default -Werror=undef -Wno-unused -Wvariadic-macros -Wwrite-strings -Wc++-compat -Werror=declaration-after-statement -Werror=implicit-function-declaration -Wmissing-prototypes -Werror=nested-externs -Werror=old-style-definition -Werror=strict-prototypes -fvisibility=hidden parrot::chmod=$(PERL) -MExtUtils::Command -e chmod parrot::clang=0 parrot::clock_best= parrot::configdate=Thu Feb 14 10:09:18 2013 GMT parrot::configuration_steps=init::manifest init::defaults init::install init::hints inter::progs inter::make inter::lex inter::yacc auto::gcc auto::glibc auto::backtrace auto::msvc auto::attributes auto::warnings auto::arch auto::cpu init::optimize inter::shlibs inter::libparrot inter::types auto::ops auto::pmc auto::headers auto::sizes auto::byteorder auto::va_ptr auto::format auto::isreg auto::llvm auto::inline auto::gc auto::memalign auto::signal auto::socklen_t auto::stat auto::neg_0 auto::env auto::timespec auto::infnan auto::thread auto::gmp auto::readline auto::pcre auto::opengl auto::zlib auto::gettext auto::snprintf auto::perldoc auto::coverage auto::pod2man auto::ctags auto::revision auto::icu auto::libffi auto::ipv6 auto::platform auto::alignof gen::config_h gen::core_pmcs gen::opengl gen::makefiles gen::config_pm parrot::configure_args="--optimize" "--prefix=/Users/curtispoe/projects/rakudo/install" parrot::configured_from_file= parrot::cover=/Users/curtispoe/perl5/perlbrew/perls/perl-5.12.4/bin/cover parrot::cp=$(PERL) -MExtUtils::Command -e cp parrot::cpuarch=i386 parrot::ctags=ctags parrot::cxx=c++ parrot::darwin=1 parrot::datadir=/Users/curtispoe/projects/rakudo/install/share parrot::debugging=1 parrot::DEVEL=-devel parrot::docdir=/Users/curtispoe/projects/rakudo/install/share/doc parrot::doublesize=8 parrot::dquote=" parrot::embed-cflags=-I/Users/curtispoe/projects/rakudo/install/include/parrot/4.10.0-devel parrot::embed-ldflags=-L/Users/curtispoe/projects/rakudo/install/lib -lparrot -L/opt/local/lib -licuuc -licudata -lm -lutil -lgmp -lreadline -lintl -lffi parrot::exe= parrot::exec_prefix=/Users/curtispoe/projects/rakudo/install parrot::flex_version= parrot::float4_t=float parrot::float8_t=double parrot::floatsize=4 parrot::floatvalfmt=%.15g parrot::floatvalmax=DBL_MAX parrot::floatvalmin=DBL_MIN parrot::g++=0 parrot::gc_flag= parrot::gc_type=GMS parrot::gccversion=4.2 parrot::gcov=/usr/bin/gcov parrot::gcov2perl=/Users/curtispoe/perl5/perlbrew/perls/perl-5.12.4/bin/gcov2perl parrot::glibc= parrot::glut=define parrot::glut_brand=MacOSX_GLUT parrot::gmake_version=3.81 parrot::gmp=define parrot::has___sighandler_t= parrot::HAS_BSD_STAT_EXTN=1 parrot::HAS_C99_SNPRINTF=1 parrot::HAS_COMPILER_OFFSETOF_ALIGNOF=1 parrot::HAS_CORE_NCI_THUNKS=1 parrot::has_core_nci_thunks=1 parrot::has_coverage_tools=1 parrot::has_dynamic_linking=1 parrot::HAS_EXTRA_NCI_THUNKS=1 parrot::has_extra_nci_thunks=1 parrot::HAS_GETTEXT=1 parrot::HAS_GLUT=5 parrot::has_glut=5 parrot::HAS_GMP=1 parrot::has_icu=1 parrot::HAS_INF_NAN=1 parrot::HAS_INT64=1 parrot::HAS_IPV6=1 parrot::HAS_LIBFFI=1 parrot::has_libffi=1 parrot::has_llvm= parrot::HAS_LONGLONG=1 parrot::has_negative_zero=1 parrot::HAS_OPENGL=1 parrot::has_opengl=1 parrot::HAS_PCRE=1 parrot::has_perldoc=1 parrot::has_pod2man=1 parrot::HAS_READLINE=1 parrot::has_setitimer=define parrot::has_sig_atomic_t=define parrot::has_sigaction=define parrot::has_sigatomic_t= parrot::HAS_SNPRINTF=1 parrot::has_socklen_t=1 parrot::HAS_STAT_ATIM=0 parrot::HAS_STAT_ATIMESPEC=1 parrot::has_static_linking=1 parrot::HAS_THREADS=1 parrot::HAS_TIMESPEC=1 parrot::has_zlib=1 parrot::HASATTRIBUTE_COLD=1 parrot::HASATTRIBUTE_CONST=1 parrot::HASATTRIBUTE_DEPRECATED=1 parrot::HASATTRIBUTE_FORMAT=0 parrot::HASATTRIBUTE_HOT=1 parrot::HASATTRIBUTE_MALLOC=1 parrot::HASATTRIBUTE_NEVER_WORKS=0 parrot::HASATTRIBUTE_NONNULL=1 parrot::HASATTRIBUTE_NORETURN=1 parrot::HASATTRIBUTE_PURE=1 parrot::HASATTRIBUTE_UNUSED=1 parrot::HASATTRIBUTE_WARN_UNUSED_RESULT=1 parrot::have_cover=exit 0 parrot::hugefloatval=long double parrot::hugefloatvalsize=16 parrot::hugeintval=long long parrot::hugeintvalsize=8 parrot::i_netinetin=define parrot::i_setjmp=define parrot::i_signal=define parrot::i_sysexit= parrot::i_syssocket=define parrot::i_syssysctl=define parrot::icu_dir=/opt/local parrot::icu_shared=-L/opt/local/lib -licuuc -licudata parrot::includedir=/Users/curtispoe/projects/rakudo/install/include parrot::infodir=/Users/curtispoe/projects/rakudo/install/info parrot::inline= parrot::inst_libparrot_ldflags= parrot::inst_libparrot_linkflags=-L/Users/curtispoe/projects/rakudo/install/lib -lparrot parrot::int2_t=short parrot::int4_t=int parrot::int8_t=long parrot::intsize=4 parrot::intvalfmt=%ld parrot::intvalmax=LONG_MAX parrot::intvalmin=LONG_MIN parrot::intvalsize=8 parrot::isreg=1 parrot::iv=long parrot::ld=c++ parrot::ld_debug= parrot::ld_load_flags=-undefined dynamic_lookup -bundle parrot::ld_out=-o parrot::ld_share_flags=-dynamiclib -undefined dynamic_lookup parrot::ldflags=-fstack-protector -L"/Users/curtispoe/projects/rakudo/parrot/blib/lib" -L/opt/local/lib parrot::lex=echo parrot::libdir=/Users/curtispoe/projects/rakudo/install/lib parrot::libexecdir=/Users/curtispoe/projects/rakudo/install/libexec parrot::libparrot_for_makefile_only=$(LIBPARROT_SHARED) parrot::libparrot_ldflags= parrot::libparrot_linkflags=-L"/Users/curtispoe/projects/rakudo/parrot/blib/lib" -lparrot parrot::libparrot_shared=libparrot.4.10.0.dylib parrot::libparrot_shared_alias=libparrot.dylib parrot::libparrot_soname=-install_name "/Users/curtispoe/projects/rakudo/install/lib/libparrot.dylib" parrot::libparrot_static=libparrot.a parrot::libs=-lm -lutil -lgmp -lreadline -lintl -lffi parrot::link=c++ parrot::link_debug= parrot::link_dynamic= parrot::linkflags=-undefined dynamic_lookup -L/opt/local/lib -L/opt/local/lib parrot::lns=/bin/ln -s parrot::load_ext=.bundle parrot::localstatedir=/Users/curtispoe/projects/rakudo/install/var parrot::longdoublesize=16 parrot::longlongsize=8 parrot::longsize=8 parrot::MAJOR=4 parrot::make=make parrot::make_and=&& parrot::make_c=+make -C parrot::make_set_make=# parrot::mandir=/Users/curtispoe/projects/rakudo/install/man parrot::memalign=some_memalign parrot::MINOR=10 parrot::mkpath=$(PERL) -MExtUtils::Command -e mkpath parrot::msvcversion= parrot::mv=$(PERL) -MExtUtils::Command -e mv parrot::ncilib_link_extra= parrot::new_perldoc=1 parrot::no_lines_flag= parrot::noinline=__attribute__ ((noinline)) parrot::numvalsize=8 parrot::nv=double parrot::nvsize=8 parrot::o=.o parrot::oldincludedir=/usr/include parrot::opcode_t=long parrot::opcodesize=8 parrot::opengl=define parrot::opengl_lib=-framework OpenGL -framework GLUT parrot::ops=src/ops/core.ops src/ops/bit.ops src/ops/cmp.ops src/ops/experimental.ops src/ops/io.ops src/ops/math.ops src/ops/object.ops src/ops/pmc.ops src/ops/set.ops src/ops/string.ops src/ops/sys.ops src/ops/var.ops parrot::optimize=-O3 parrot::osname=darwin parrot::osvers=11.4.2 parrot::osx_version=10.7 parrot::PARROT_HAS_DLINFO=1 parrot::parrot_is_shared=1 parrot::PATCH=0 parrot::perl=perl parrot::perldoc=/Users/curtispoe/perl5/perlbrew/perls/perl-5.12.4/bin/perldoc parrot::platform=darwin parrot::platform_asm=0 parrot::pmc=default.pmc null.pmc env.pmc key.pmc unmanagedstruct.pmc managedstruct.pmc exception.pmc parrotlibrary.pmc parrotinterpreter.pmc lexpad.pmc timer.pmc pointer.pmc sub.pmc continuation.pmc coroutine.pmc eval.pmc nci.pmc float.pmc integer.pmc bigint.pmc bignum.pmc complex.pmc string.pmc boolean.pmc fixedintegerarray.pmc iterator.pmc fixedstringarray.pmc hash.pmc orderedhash.pmc oplib.pmc opcode.pmc addrregistry.pmc alarm.pmc arrayiterator.pmc bytebuffer.pmc callback.pmc callcontext.pmc capture.pmc class.pmc eventhandler.pmc exceptionhandler.pmc exporter.pmc filehandle.pmc fixedbooleanarray.pmc fixedfloatarray.pmc fixedpmcarray.pmc handle.pmc hashiterator.pmc hashiteratorkey.pmc imageiofreeze.pmc imageiosize.pmc imageiostrings.pmc imageiothaw.pmc imccompiler.pmc lexinfo.pmc mappedbytearray.pmc multisub.pmc namespace.pmc nativepccmethod.pmc object.pmc orderedhashiterator.pmc os.pmc packfile.pmc packfileannotation.pmc packfileannotations.pmc packfilebytecodesegment.pmc packfileconstanttable.pmc packfiledebug.pmc packfiledirectory.pmc packfileopmap.pmc packfilerawsegment.pmc packfilesegment.pmc packfileview.pmc pmclist.pmc pmcproxy.pmc ptr.pmc ptrbuf.pmc ptrobj.pmc resizablebooleanarray.pmc resizablefloatarray.pmc resizableintegerarray.pmc resizablepmcarray.pmc resizablestringarray.pmc role.pmc scalar.pmc scheduler.pmc schedulermessage.pmc sockaddr.pmc socket.pmc stringbuilder.pmc stringhandle.pmc stringiterator.pmc structview.pmc task.pmc undef.pmc parrot::pmc_names=default Null Env Key UnManagedStruct ManagedStruct Exception ParrotLibrary ParrotInterpreter LexPad Timer Pointer Sub Coroutine Eval EventHandler Continuation ExceptionHandler NCI BigInt BigNum Complex FixedIntegerArray ResizableIntegerArray Iterator ArrayIterator HashIterator OrderedHashIterator StringIterator FixedStringArray ResizableStringArray Hash LexInfo NameSpace OrderedHash OpLib Opcode AddrRegistry Alarm ByteBuffer CallContext Capture Class PMCProxy Exporter FixedBooleanArray ResizableBooleanArray FixedFloatArray ResizableFloatArray FixedPMCArray ResizablePMCArray MultiSub Handle FileHandle Socket StringHandle HashIteratorKey ImageIOFreeze ImageIOSize ImageIOStrings ImageIOThaw IMCCompiler MappedByteArray NativePCCMethod Object OS Packfile PackfileAnnotation PackfileOpMap PackfileSegment PackfileAnnotations PackfileConstantTable PackfileDirectory PackfileRawSegment PackfileBytecodeSegment PackfileDebug PackfileView PMCList Ptr PtrBuf PtrObj Role scalar Float Integer String Boolean Scheduler SchedulerMessage Sockaddr StringBuilder StructView Task Callback Undef parrot::pod2man=/Users/curtispoe/perl5/perlbrew/perls/perl-5.12.4/bin/pod2man parrot::PQ=' parrot::prefix=/Users/curtispoe/projects/rakudo/install parrot::ptrcast=unsigned long parrot::ptrsize=8 parrot::ranlib=ranlib parrot::readline=define parrot::revision=1 parrot::rm_f=$(PERL) -MExtUtils::Command -e rm_f parrot::rm_rf=$(PERL) -MExtUtils::Command -e rm_rf parrot::rpath=-L parrot::rpath_blib="-L/Users/curtispoe/projects/rakudo/parrot/blib/lib" parrot::rpath_lib=-L"/Users/curtispoe/projects/rakudo/install/lib" parrot::sbindir=/Users/curtispoe/projects/rakudo/install/sbin parrot::setenv=1 parrot::share_ext=.dylib parrot::sharedstatedir=/Users/curtispoe/projects/rakudo/install/com parrot::shortsize=2 parrot::slash=/ parrot::srcdir=/Users/curtispoe/projects/rakudo/install/src parrot::sym_export=__attribute__ ((visibility("default"))) parrot::sym_import= parrot::sysconfdir=/Users/curtispoe/projects/rakudo/install/etc parrot::tar=/usr/bin/tar parrot::tempdir=/var/folders/zh/yw2d1f0j6170m7zn9y55nlr40000gn/T parrot::test_prog=parrot parrot::touch=$(PERL) -MExtUtils::Command -e touch parrot::unsetenv=1 parrot::va_ptr_type=register parrot::verbose= parrot::VERSION=4.10.0 parrot::versiondir=/parrot/4.10.0-devel parrot::yacc=echo parrot::installed=1 perl6::name=rakudo perl6::version=2013.01-117-g8369e63 perl6::release-number= perl6::codename= perl6::build-date=2013-02-14T10:16:32Z