archive-org.com » ORG » I » IOKE.ORG

Total: 746

Choose link from "Titles, links and description words view":

Or switch to "Titles and links view".
  • Kind: DefaultBehavior
    mimic IO represents a file in the file system Mimics IO Inactive cells kind Active cells close Specs Inactive cells details kind FileSystem File Active cells details close Closes any

    Original URL path: https://ioke.org/dok/latest/kinds/FileSystem/File.html (2016-02-13)
    Open archived version from archive


  • Kind: DefaultBehavior
    Inactive cells details kind Hook Active cells details cellAdded obj sym nil show source method obj sym nil cellChanged obj sym originalValue nil show source method obj sym originalValue nil cellRemoved obj sym originalValue nil show source method obj sym originalValue nil cellUndefined obj sym originalValue nil show source method obj sym originalValue nil connectedObjects returns the objects this hook is connected to hook objectToHookInto Takes one argument and will

    Original URL path: https://ioke.org/dok/latest/kinds/Hook.html (2016-02-13)
    Open archived version from archive

  • Kind: DefaultBehavior
    object println object nil read Specs Inactive cells details kind IO Active cells details print object Prints a text representation of the argument to the current IO object println object nil Prints a text representation of the argument and a

    Original URL path: https://ioke.org/dok/latest/kinds/IO.html (2016-02-13)
    Open archived version from archive

  • Kind: DefaultBehavior
    name error Condition Error Invocation NoMatch message call message context call currentContext initialize nil show source method iopt receiver nil iopt actions dict iopt help dict plain IOpt Help Plain Simple mimic self initialize method iopt get arg Return the handler for option show source method arg if handler iopt ion arg if handler action iopt actions handler option unless handler action mimics IOpt Action signal NoActionForOption text Not a valid action for arg option arg value handler action handler iopt ion arg If the argument is a valid option name it MUST return an object with the following cells short an string like if it is a short option otherwise nil this value must be or whatever prefix you use for short options option e g f foo this value will be used to look for the the option action by the iopt get method immediate if non nil indicates this option has an immediate value for example in foo bar the inlined value should be bar for short options like l22 it should be 22 If the argument is not a valid option name return nil IOpt imposes no restriction on how an option looks like by default this method handles traditional unix style options f foo But you can easily change that and have your options look like you want for example like Mike tasks or windows style options if you override this method show source method arg if m long name w immediate match arg if m long nil m immediate nil m name length 1 m immediate m name 1 1 m name m name 0 0 m short if m long nil m option if m long m name m iopt key arg Return non nil if the argument is an option keyword If non nil the object should have the following cells defined name The keyword name immediate The value if it has been provided with the keyword show source method arg name w immediate match arg on You can use this to create actions having an object as receiver If the first arguments are options the remaining arguments will be used to create a LexicalBlock which will be the action handler These lexical blocks can access and self cells that reference the action receiver in this case the iopt object itself on h help Show help println System exit If only given one argument will return a mimic of self having the given argument as receiver for all actions created with it opts IOpt on myApp opts on me Print myApp println opts on path Set the path cell on myApp path opts on f Call method doSomething on myApp doSomething If the first argument is an object the remaining arguments are used to create a lexicalBlock to handle the action having the first argument as receiver on myApp v Print myApp version version println show source macro argCount call arguments length if argCount 0 self if argCount 1 receiver call argAt

    Original URL path: https://ioke.org/dok/latest/kinds/IOpt.html (2016-02-13)
    Open archived version from archive

  • Kind: DefaultBehavior
    cell activatable activatable fnx arg cell outsideSelf call cell other call arg fn arg cell outsideSelf call cell other call arg other nil show source method other if self same LexicalBlock 5D15126E Reflector other mimics cell other LexicalBlock 5D15126E bind rescue Condition Error fn c false self call other argumentNames returns a list of the argument names the positional arguments this block takes argumentsCode returns the code for the argument definition arity nil show source method Arity fromArgumentsCode argumentsCode call arguments invokes the block with the arguments provided returning the result of the last expression in the block code returns the full code of this lexical block as a Text complement nil show source method outsideSelf self if cell activatable activatable fnx arg cell outsideSelf call arg fn arg cell outsideSelf call arg createFrom messageList lexicalContext takes two evaluated arguments where this first one is a list of messages which will be used as the arguments and the code and the second is the context where this lexical scope should be created in formattedCode returns idiomatically formatted code for this lexical block inspect Returns a text inspection of the object iterate args Returns an infinite sequence that will in turn

    Original URL path: https://ioke.org/dok/latest/kinds/LexicalBlock.html (2016-02-13)
    Open archived version from archive

  • Kind: DefaultBehavior
    in this list and then returns the list concat otherList adds the elements in the argument list to the current list and then returns that list each indexOrArgOrCode nil argOrCode nil code nil takes either one or two or three arguments if one argument is given it should be a message chain that will be sent to each object in the list the result will be thrown away if two arguments are given the first is an unevaluated name that will be set to each of the values in the list in succession and then the second argument will be evaluated in a scope with that argument in it if three arguments is given the first one is an unevaluated name that will be set to the index of each element and the other two arguments are the name of the argument for the value and the actual code the code will evaluate in a lexical context and if the argument name is available outside the context it will be shadowed the method will return the list empty returns true if this list is empty false otherwise flatten returns a new list that is a mimic of the current list with all elements flattened in it show source method newList self mimic newList flatten newList flatten flattens all lists in this list recursively then returns it hash returns a hash for the list ifEmpty if this list is empty returns the result of evaluating the argument otherwise returns the list show source macro argCount call arguments length cond argCount 1 then call arguments 0 if empty call argAt 0 self error Condition Error Invocation NoMatch message call message context call currentContext include object returns true if the receiver includes the evaluated argument otherwise false index obj takes an object and returns the index of the first occurance of that object in this list or nil if it doesn t exist show source method obj self each index element if element obj return index nil insert index objects takes an index and zero or more objects to insert at that point the index can be negative to index from the end of the list if the index is positive and larger than the size of the list the list will be filled with nils inbetween inspect Returns a text inspection of the object join separator returns a text composed of the asText representation of all elements in the list separated by the separator the separator defaults to an empty text last returns the last element of this list or nil of the list is empty show source method if empty nil 0 1 length nil map argOrCode code nil takes one or two arguments and will then use these arguments as code to transform each element in this list the transform happens in place finally the method will return the receiver notice Returns a brief text inspection of the object pick quantity nil picks a random element from the list If

    Original URL path: https://ioke.org/dok/latest/kinds/List.html (2016-02-13)
    Open archived version from archive

  • Kind: DefaultBehavior
    list will be creared otherwise the list given as arguments will be used it then returns the receiving message asStackTraceText returns a string that describes this message as a stack trace elemtn code Returns a code representation of the object deepCopy returns a deep clone of this message chain starting at the current point doText code Takes one evaluated argument and executes the contents of that text in the current context and returns the result of that each indexOrArgOrCode nil argOrCode nil code nil takes either one or two or three arguments if one argument is given it should be a message chain that will be sent to each message in the chain the result will be thrown away if two arguments are given the first is an unevaluated name that will be set to each of the messages in the chain in succession and then the second argument will be evaluated in a scope with that argument in it if three arguments is given the first one is an unevaluated name that will be set to the index of each message and the other two arguments are the name of the argument for the value and the actual code the code will evaluate in a lexical context and if the argument name is available outside the context it will be shadowed the method will return the original message evalArgAt argumentIndex context takes one index and a context and returns the evaluated argument at that index evaluateOn ground receiver ground arguments Takes one or more evaluated arguments and sends this message chain to where the first argument is ground and if there are more arguments the second is the receiver and the rest will be the arguments filename returns the file name where this message is written formattedCode Returns a formatted code representation of the object from returns the message chain for the argument given show source macro argCount call arguments length cond argCount 1 code call arguments 0 code deepCopy error Condition Error Invocation NoMatch message call message context call currentContext fromText code Takes one evaluated argument and returns the message resulting from parsing and operator shuffling the resulting message keyword returns true if this message is a keyword parameter or not last returns the last message in the chain line returns the line where this message is written name returns the name of this message name newName sets the name of the message and then returns that name next returns the next message in the chain or nil next newNext sets the next pointer of the message and then returns that pointer position returns the position on the line where this message is written prev returns the previous message in the chain or nil prev newPrev sets the prev pointer of the message and then returns that pointer rewrite patterns Takes zero or more pairs of message chains that describe how rewriting of the current message chain should happen The message patterns can use symbols to match variable

    Original URL path: https://ioke.org/dok/latest/kinds/Message.html (2016-02-13)
    Open archived version from archive

  • Kind: DefaultBehavior
    5 2 nand 13 import 14 12 12 12 2 12 0 xor 13 5 12 12 12 â 6 6 11 12 12 12 6 12 11 0 12 â 5 12 12 10 12 trinaryOperators 2 2 2 2 2 2 2 2 2 2 2 1 2 1 2 2 Active cells details withInvertedOperator temporarily adds a new inverted operator with the specified associativity and then removes it again if the operator is already in there changes the associativity temporarily show source macro argCount call arguments length cond argCount 3 name call argAt 0 assoc call argAt 1 code call arguments 2 if name mimics Text name name let Message OperatorTable invertedOperators Message OperatorTable invertedOperators merge name assoc code evaluateOn call ground call ground error Condition Error Invocation NoMatch message call message context call currentContext withOperator temporarily adds a new operator with the specified associativity and then removes it again if the operator is already in there changes the associativity temporarily show source macro argCount call arguments length cond argCount 3 name call argAt 0 assoc call argAt 1 code call arguments 2 if name mimics Text name name let Message OperatorTable operators Message OperatorTable operators merge

    Original URL path: https://ioke.org/dok/latest/kinds/Message/OperatorTable.html (2016-02-13)
    Open archived version from archive



  •