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
    will match exactly three arguments and assign them to the names one two and three unevaluated if you wish to evaluate an argument before it gets assigned to the variable you can use a literal preceding the name like this one two this will take exactly two arguments where the second will be assigned the evaluated result of the second argument while the first will get the unevaluated message the evaluation of evaluated arguments are lazy which means that something like this cond then do something here cond then else do something else will only evaluate the cond that is relevant to the structure this means that if you give two arguments to the above code only the above cond will be evaluated and if you give three arguments only the second cond will be evaluated the final destructuring available at the moment allows the use of a rest argument this should generally be placed last in the patterns since a rest argument will most of the time match everything a rest argument can be specified with any the plus sign is the magic part any name can be used what you will get is a list of unevaluated messages matching zero or more of the argument list rest arguments can be combined with other arguments but should be placed last in that case a list of evaluated arguments can be generated by following the plus sign with a greater than arrow arg moreArgs a pattern matching list can also be empty finally a destructuring can also have default arguments these will be evaluated if no matching argument can be found the default argument for an unevaluated argument will be the message chain to unevaluated set to the default argument the default argument for an evaluated value will be evaluated at the point which means it can use earlier values arg1 2 2 arg2 2 2 will match an empty argument list and in that case give arg1 the message chain corresponding to 2 2 while arg2 will be set to the value 4 show source syntax DefaultBehavior Definitions destructuring doFor macro call dsyntax works exactly the same as dmacro but returns a DefaultSyntax instead show source syntax DefaultBehavior Definitions destructuring doFor syntax call fn documentation nil argumentsAndBody creates a new lexical block that can be executed at will while retaining a reference to the lexical closure it was created in it will always update variables if they exist there is currently no way of introducing shadowing variables in the local context new variables can be created though just like in a method a lexical block mimics LexicalBlock and can take arguments at the moment these are restricted to required arguments but support for the same argument types as DefaultMethod will come fnx does the same things as fn but returns something that is activatable show source macro call resendToMethod fn do activatable true generateMatchMethod takes one argument that should be the name of the match method to use need

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


  • Kind: DefaultBehavior
    specific ensure invocation are not guaranteed to run for nil show source syntax DefaultBehavior FlowControl cell for transform call arguments map flatMap for dict nil show source syntax DefaultBehavior FlowControl cell for transform call arguments map dict flatMap dict for set nil show source syntax DefaultBehavior FlowControl cell for transform call arguments map set flatMap set if condition then nil else nil evaluates the first arguments and then evaluates the second argument if the result was true otherwise the last argument returns the result of the call or the result if it s not true ignoreErrors takes one or two pices of code runs the first code segment and returns nil if it signals an error If a second argument of code is given evaluates this only when an error is encountered and uses the result to return if everything works as expected ignoreErrors will just return the result of the first evaluation show source macro argCount call arguments length cond argCount 1 protectedCode call arguments 0 bind rescue Condition Error fn c nil protectedCode evaluateOn call ground call ground argCount 2 protectedCode call arguments 0 otherwiseCode call arguments 1 bind rescue Condition Error fn c otherwiseCode evaluateOn call ground call ground protectedCode evaluateOn call ground call ground error Condition Error Invocation NoMatch message call message context call currentContext let code placesAndValues takes zero or more place and value pairs and one code argument establishes a new lexical scope and binds the places to the values given if the place is a simple name it will just be created as a new binding in the lexical scope if it is a place specification that place will be temporarily changed but guaranteed to be changed back after the lexical scope is finished the let form returns the final result of the code argument loop body loops forever executing it s argument over and over until interrupted in some way p for nil show source syntax DefaultBehavior FlowControl cell for transform call arguments p map p flatMap p for dict nil show source syntax DefaultBehavior FlowControl cell for transform call arguments p map dict p flatMap dict p for set nil show source syntax DefaultBehavior FlowControl cell for transform call arguments p map set p flatMap set passNil nil show source macro argCount call arguments length cond argCount 1 code call arguments 0 currentMessage code ground call ground currentReceiver call ground while currentMessage currentReceiver currentMessage sendTo currentReceiver ground if currentReceiver nil return nil currentMessage currentMessage next if currentMessage currentMessage terminator currentMessage currentMessage next currentReceiver ground currentReceiver error Condition Error Invocation NoMatch message call message context call currentContext rap takes one or more message chains Will call these on the receiver then return the receiver show source macro call arguments each code code evaluateOn call ground self self return value nil returns from the enclosing method macro if an argument is supplied this will be returned as the result of the method macro breaking out of sap nil show source macro argCount call

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

  • Kind: DefaultBehavior
    is not a message chain the literal value will be cached exactly like the Message wrap method does if a form is followed by an empty message with arguments that empty message will be deleted and the arguments to it will be added to the result of the form if a is encountered a literal message will be inserted at that point all code evaluations will happen in the ground of the caller show source macro DefaultBehavior Literals cell translate call arguments 0 deepCopy call ground to will create and return an inclusive Range from the receiver to the to argument show source method to Range inclusive cell cell to to will create and return an exclusive Range from the receiver to the to argument show source method to Range exclusive cell cell to symbolText Takes one evaluated argument that is expected to be a Text and returns the symbol corresponding to that text other Takes one evaluated argument and returns a new Pair of the receiver and the argument Takes zero or more arguments and returns a newly created list containing the result of evaluating these arguments show source macro call evaluatedArguments value Takes one argument and returns a message that wraps the value of that argument The message has no name and will be printed empty The message is guaranteed to be created from scratch show source method value Message wrap value dict pairs keywordPairs creates a new Dict from the arguments provided these arguments can be two different things either a keyword argument or a pair if it s a keyword argument the entry added to the dict for it will be a symbol with the name from the keyword without the ending colon if it s not a keyword it is expected to be an evaluated

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

  • Kind: DefaultBehavior
    arity call arguments code formattedCode inspect message name notice Specs Inactive cells details activatable true kind DefaultMacro Active cells details argumentsCode returns the code for the argument definition arity nil show source method Arity fromArgumentsCode argumentsCode call arguments activates this macro with the arguments given to call code returns the full code of this macro as a Text formattedCode returns idiomatically formatted code for this macro inspect Returns a text

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

  • Kind: DefaultBehavior
    cells kind Active cells argumentsCode arity formattedCode keywords message Specs Inactive cells details kind DefaultMethod Active cells details argumentsCode returns the code for the argument definition arity nil show source method Arity fromArgumentsCode argumentsCode formattedCode returns idiomatically formatted code for

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

  • Kind: DefaultBehavior
    notice Specs Inactive cells details activatable true kind DefaultSyntax Active cells details argumentsCode returns the code for the argument definition arity nil show source method Arity fromArgumentsCode argumentsCode call arguments activates this syntax with the arguments given to call code returns the full code of this syntax as a Text expand arguments returns the result of activating this syntax without actually doing the replacement or execution part formattedCode returns idiomatically

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

  • Kind: DefaultBehavior
    method keys values keys each i k self k values i self at key takes one argument the key of the element to return if the key doesn t map to anything in the dict returns the default value 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 dict 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 entries in the dict 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 dict the entries yielded will be mimics of Pair empty returns true if this dict is empty false otherwise hash returns a hash for the dictionary inspect Returns a text inspection of the object key key takes one argument the key to check if it is in the dict keys Returns all the keys of this dict merge pairsAndDicts keywordPairs creates a new Dict from the arguments provided combined with the values in the receiver the arguments provided will override those in the receiver the rules for arguments are the same as for dict except that dicts can also be provided all positional arguments will be added before the keyword arguments

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

  • Kind: DefaultBehavior
    same name and if it s a filename the file will get a new name createDirectory directoryName createPath false Takes one string argument and creates a directory with that name It also takes an optional second argument If it s true will try to create all necessary directories inbetween Default is false Will signal a condition if the directory already exists or if there s a file with that name directory directoryName Takes one string argument and returns true if it s the relative or absolute name of a directory and false otherwise ensureDirectory dir takes one argument that is the relative or absolute path to something that should be a directory if it exists but isn t a directory a condition will be signalled if it exists and is a directory nothing is done and if it doesn t exist it will be created show source method dir if exists dir if file dir bind restart ignore fn error Condition Error IO text Can t create directory dir since it already exists and is a file createDirectory dir true exists entryName Takes one string argument and returns true if it s the relative or absolute name of something that exists file fileName Takes one string argument and returns true if it s the relative or absolute name of a file and false otherwise parentOf entryName Takes one string argument that should be the path of a file or directory and returns the parent of it or nil if there is no parent readFully fileName Takes one string argument that should be a file name and returns a text of the contents of this file readLines filename reads the full content of a file and returns a list containing each line of the file as a separate element of the

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



  •