[Snek] [keith-packard/snek] 6d428e: Handle appending list to itself

Keith Packard noreply at github.com
Mon Mar 18 17:05:52 PDT 2019


  Branch: refs/heads/master
  Home:   https://github.com/keith-packard/snek
  Commit: 6d428e3f16d58ddbce771feae4bec0b8c4245ced
      https://github.com/keith-packard/snek/commit/6d428e3f16d58ddbce771feae4bec0b8c4245ced
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-03-18 (Mon, 18 Mar 2019)

  Changed paths:
    M snek-list.c

  Log Message:
  -----------
  Handle appending list to itself

Catch this case:

	a = [1,2,3,4]
	a += a

Just see if the appended list is the same as the original list and
fix up pointers and counts appropriately.

Signed-off-by: Keith Packard <keithp at keithp.com>


  Commit: 7afa1efaed5a1237247c05b7c693fe0229331dbb
      https://github.com/keith-packard/snek/commit/7afa1efaed5a1237247c05b7c693fe0229331dbb
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-03-18 (Mon, 18 Mar 2019)

  Changed paths:
    M snek.defs

  Log Message:
  -----------
  Let SNEKLIB be defined in snek-install.defs instead

Signed-off-by: Keith Packard <keithp at keithp.com>


Compare: https://github.com/keith-packard/snek/compare/9265bdd6aa40...7afa1efaed5a


More information about the Snek mailing list