Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

[Object] Container


  • Please log in to reply
4 replies to this topic
Rapte_Of_Suzaku
  • Members
  • 901 posts
  • Last active: Jul 08 2011 02:12 PM
  • Joined: 29 Feb 2008
A numerically indexed object with lots of useful functionality. You can fill containers using delimited strings, lists saved to a file, or other objects. Add, remove, split, slice, filter, sort, copy, and compare containers. Export container contents back to strings, files, and objects. Ready to be extended for your own Container-based objects.

This project was recently split off from my FileContainer project, and so the current functionality only covers what I wanted to have for FileContainer. Now I'm starting to think about what functionality belongs in a generic container... any feedback is very much appreciated!


Requirements (Download required scripts all at once)
[*:267far6q]Object Preferences
[*:267far6q]A build of AHK that supports objects
Content
Download Container.ahk (release #2)
Online Documentation (2010-10-17, 12:49)

Examples coming soon

Keywords (mostly method names):list, listn, array, arrayn, file, filen, refresh, toList, toArray, toFile, toClipboard, add, x, clear, makeCopy, makeTemplate, absorb, extend, become, bud, sort, rsort, sortLinked, rsortLinked, makeOrder, updateLinked, manipulate, editAsText, filter, filterTF, xBlanks, xDuplicates, xShared, xIn, iIn, xAt, iAt, xRange, iRange, s, makeSlice, makeIndicesSlice, makeRangeSlice, makeSplit, isEmpty, IsEqual, IsEquivalent, find, len, saveParams, super, get, makeNew, makeTemp, AHKH AHKL Object AutoHotkey_H AutoHotkey_L, editAsText

majkinetor
  • Moderators
  • 4512 posts
  • Last active: May 20 2019 07:41 AM
  • Joined: 24 May 2006
Looks nice and useful. Will let you know more upon real life usage.

Thx.
Posted Image

Lexikos
  • Administrators
  • 9844 posts
  • AutoHotkey Foundation
  • Last active:
  • Joined: 17 Oct 2006
Looks like your script would benefit from variadic functions. Call() is obsolete, but can be written as below (for example):
Call(func, prms*) {
    return %func%(prms*)
}


Rapte_Of_Suzaku
  • Members
  • 901 posts
  • Last active: Jul 08 2011 02:12 PM
  • Joined: 29 Feb 2008
Oh, excellent! AutoHotkey_L revision 60 makes me very happy. Not just variadic functions, the ByRef change is going to come in handy for an object debugger I've been experimenting with.

and majkinetor - I eagerly await your feedback ^_^

Rapte_Of_Suzaku
  • Members
  • 901 posts
  • Last active: Jul 08 2011 02:12 PM
  • Joined: 29 Feb 2008
Release #2


New Features:[*:1442iqf8]variadic functions!
[*:1442iqf8]COM construction method for using a COM object as a source of items (new idea, so features aren't settled)Bugfixes:[*:1442iqf8]there were a number of missed dependancies on FileContainer. It seems I didn't split the project all the way last time...Changes:[*:1442iqf8]toFile now overwrites target file by default.