Re: Strange behavior in sequence handling
- Posted by aku at inbox.as May 07, 2001
- 449 views
Very Error: sequence L L = {'a', 'b', 'z'} L[1] = L L[1][1] = L ?L In EX.EXE: {{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{ {{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{ {{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{ {{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{ {{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{ CauseWay DOS Extender v3.45 Copyright 1992-99 Michael Devore. All rights reserved. Exception: 0E, Error code: 0006 EAX=FFD1AB60 EBX=00000000 ECX=00000042 EDX=C600077B ESI=00000197 EDI=0000007B EBP=8380EC4C ESP=8380EC1C EIP=837FCCCF EFL=00010286 CS=018F-7C822000 DS=0197-7C822000 ES=0197-7C822000 FS=0000-xxxxxxxx GS=019F-xxxxxxxx SS=0197-7C822000 CR0=00000000 CR2=00000000 CR3=00000000 TR=0000 Info flags=00008018 Writing CW.ERR file.... CauseWay error 09 : Unrecoverable exception. Program terminated. ---------------------------------------- In EXW.exe: EXW caused an invalid page fault in module EXW.EXE at 0177:0040cd63. Registers: EAX=00000001 CS=0177 EIP=0040cd63 EFLGS=00010287 EBX=800b0196 SS=017f ESP=0055fffc EBP=0056fc46 ECX=00580cf8 DS=017f ESI=00000043 FS=267f EDX=0041fce8 ES=017f EDI=00580cb0 GS=0000 Bytes at CS:EIP: e8 a8 fe ff ff 83 3d 90 3d 42 00 ff 0f 84 98 00 Stack dump: > H> I'm a newcomer to Euphoria but I immediately found it interesting enough to spend the few bucks that entitle you as a registered supporter. BTW are there Euphoria T-shirts or something? H> Now let's come to my first contribution (ahem) to this forum. H> Can somebody try the following and tell me if he/she gets the same weird behavior: H> sequence L H> with trace H> trace(1) H> -- OK H> L = {'a', 'b', 'z'} H> L = {L, 1, 2} H> L = {L, 4, 5} H> -- probably OK all along the line H> -- Weird H> L = {'a', 'b', 'z'} H> L[1] = L -- Still OK H> L[1][1] = L -- Wow! Is this LISP or Prolog or something? H> trace(0) H> It might be that I missed a subtlety of the language (I'm a newbie after all), but I would rather suspect that Euphoria has trapped itself in some of its optimizations in the internal H> representation of sequences, somewhere deep down in its guts. H> Anyway have a nice day, all of you! H> Henri from Belgium H> PS: I apologize for my pidgin English. My mother tongue is French. So let's all talk Euphorian.