Share on Facebook Share on Twitter Email
Answers.com

assignment

 
(ə-sīn'mənt) pronunciation
n.
  1. The act of assigning.
  2. Something, such as a task, that is assigned. See synonyms at task.
  3. A position or post of duty to which one is assigned.
  4. Law.
    1. The transfer of a claim, right, interest, or property from one to another.
    2. The instrument by which this transfer is effected.

Search unanswered questions...
Enter a question here...
Search: All sources Community Q&A Reference topics

1. Signing over title, rights, or other interests to another person.

2. In a Letter of Credit, transfer by a Beneficiary of all or part of the credit facility to another party, which must be confirmed by the advising bank.

3. Writing on the back of a stock certificate transferring ownership to another holder.

4. Transfer of debtor's property to creditors, called an assignment for the benefit of creditors. Transfers in the 90 days prior to a bankruptcy petition may, however, be set aside by a bankruptcy trustee. See also Voidable Preference.

5. Option writer's notice to the Options Clearing Corp. Of his intention to fulfill an offsetting buy, resulting in all assignment in favor of the seller.

The method by which a right or contract is transferred from one person to another. Contracts commonly assigned include LEASES, MORTGAGES, and deeds of trust .


Example: A tenant signs an assignment giving another the rights to use the leased space.

Previous:Assignee, Assign
Next:Assignment of Lease, Assignment of Rents
Roget's Thesaurus:

assignment

Top

noun

  1. The act of distributing or the condition of being distributed: admeasurement, allocation, apportionment, dispensation, distribution, division. See collect/distribute.
  2. The act of attributing: ascription, attribution, credit, imputation. See give/take/reciprocity.
  3. A piece of work that has been assigned: chore, duty, job, office, stint, task. See work/play.
  4. A making over of legal ownership or title: Law alienation, conveyance, grant, transfer, transferal. See law.

Antonyms by Answers.com:

assignment

Top

n

Definition: selecting or setting apart
Antonyms: keeping


1. The transfer of a legal right.
2. In the case of a lease, the transfer of the right of the tenant to the entire property leased and for the entire term remaining; also see sublease.


This entry contains information applicable to United States law only.

A transfer of rights in real property or personal property to another that gives the recipient — the transferee — the rights that the owner or holder of the property — the transferor — had prior to the transfer.

An assignment of wages is the transfer of the right to collect wages from the wage earner to his or her creditor. Statutes regulate the extent to which an assignment may be made.

1. The transfer of an individual's rights or property to another person or business.

2. A notice received by an option writer stating that the option sold has been exercised by the purchaser of the option.

Investopedia Says:
1. Essentially, an assignment is the transfer of ownership. An example of an assignment is when a person sells his or her car, thereby transferring the title to another.

2. When assigned, the option writer has an obligation to complete the requirements of the option contract. If the option was a call (put) option, then the writer would have to sell (buy) the underlying security at the stated strike price.

Related Links:
An introduction to the world of options, covering everything from primary concepts to how options work and why you might use them. Options Basics Tutorial
Decrease the value of your taxable estate and prevent the tax man from getting you one last time. How To Avoid Taxation On Life Insurance Proceeds
We walk through the steps needed to secure the best loan to finance the purchase of your home. Understanding Your Mortgage
Generosity may be its own reward, but some charitable giving also provides personal tax benefits. Deducting Your Donations


Word Tutor:

assignment

Top
pronunciation

IN BRIEF: Something appointed.

pronunciation The teacher always gave a long homework assignment.

LearnThatWord.com is a free vocabulary and spelling program where you only pay for results!


the identification of the part of a molecule that is responsible for a particular property, for example a cellular function or spectroscopic signal.

Previous:assembly, assay, aspirin
Next:assimilation, assimilatory, assimilatory regulatory protein a
Random House Word Menu:

categories related to 'assignment'

Top
Random House Word Menu by Stephen Glazier
For a list of words related to assignment, see:

Wikipedia on Answers.com:

Assignment (computer science)

Top

In computer programming, an assignment statement sets or re-sets the value stored in the storage location(s) denoted by a variable name. In most imperative computer programming languages, assignment statements are one of the basic statements. Common notations for the assignment operator are = and :=.[1]

Assignment statements typically allow for the same variable to contain different values at different times during program execution. Thus, languages featuring destructive assignment rarely enforce referential transparency, which requires a procedure to return the same results for a given set of inputs at any point in time.

Contents

Semantics

An assignment operation is a process in imperative programming in which different values are associated with a particular variable name as time passes.[2] The program, in such model, operates by changing its state using successive assignment statements.[1][3] Primitives of imperative programming languages rely on assignment to do iteration.[4] At the lowest level, assignment is implemented using machine operations such as MOVE or STORE.[1][4]

The variables are containers for values. It is possible to put a value into variable and later replace it with a new one. An assignment operation modifies the current state of the executing program.[3] Consequently, assignment is dependent on the concept of variables. In an assignment:

  • The expression is evaluated in the current state of the program.
  • The variable is assigned the computed value, replacing the prior value of that variable.

Example: Assuming that a is a numeric variable, the assignment a := 2*a means that the content of the variable a is doubled after the execution of the statement. The case that the assigned value depends on previous one is so common that many imperative languages, most notably C and the majority of its descendants, augment the notion of assignment by defining special binary operators like *= for convenience so that the example becomes a *= 2.[3]

An example segment of C code:

int x = 10; 
float y;
x = 23;
y = 32.4;

In this sample, the variable x is first declared as an int, and is then assigned the value of 10. Notice that the declaration and assignment occur in the same statement. In the second line, y is declared without an assignment. In the third line, x is reassigned the value of 23. Finally, y is assigned the value of 32.4.

For an assignment operation, it is necessary that the value of the expression is well-defined (it is a valid rvalue) and that the variable represents a modifiable entity (it is a valid modifiable (non-const) lvalue). In some languages, typically dynamic ones, it is not necessary to declare a variable prior to assigning it a value.

Single assignment

In pure functional programming, destructive assignment is not allowed, because of side effects[5]

Any assignment that changes an existing value (e.g. x := x + 1) is disallowed in purely functional languages.[4] In functional programming, assignment is discouraged in favor of single assignment, also called initialization. Single assignment is an example of name binding and differs from assignment as described in this article in that it can only be done once, usually when the variable is created; no subsequent re-assignment is allowed. Once created by single assignment, named values are not variables but immutable objects.

An evaluation of expression does not have a side effect if it does not change an observable state of the machine,[6] and produces same values for same input.[4] Imperative assignment can introduce side effects while destroying and making the old value unavailable while substituting it with a new one,[5] and is referred to as "destructive assignment" for that reason in LISP and functional programming, similar to destructive updating.

Single assignment is the only form of assignment available in purely functional languages, such as Haskell, which do not have variables in the sense of imperative programming languages[4] but rather named constant values possibly of compound nature with their elements progressively defined on-demand. Purely functional languages can provide an opportunity for computation to be performed in parallel, avoiding von Neumann bottleneck of sequential one step at time execution, since values are independent of each other.[7]

Impure functional languages provide both single assignment as well as true assignment (though true assignment is typically used with less frequency than in imperative programming languages). For example, in Scheme, both single assignment (with let) and true assignment (with set!) can be used on all variables, and specialized primitives are provided for destructive update inside lists, vectors, strings, etc. In OCaml, only single assignment is allowed for variables, via the let name = value syntax; however destructive update can be used on elements of arrays and strings with separate <- operator, as well as on fields of records and objects that have been explicitly declared mutable (meaning capable of being changed after their initial declaration) by the programmer.

Functional programming languages that use single assignment include Clojure, Erlang, F#, Haskell, Lava, Objective Caml, Oz, SASL, Scala (for vals), SISAL. Non-backtracking Prolog code can be considered explicit single-assignment, explicit in a sense that its (named) variables can be in explicitly unassigned state, or be set exactly once. In Haskell, by contrast, there can be no unassigned variables, and every variable can be thought of as being implicitly set to its value (or rather to a computational object that will produce its value on demand) when it is created.

Value of an assignment

In some programming languages, an assignment statement returns a value, while in others it does not.

In most expression-oriented programming languages (for example, C), the assignment statement returns the assigned value, allowing such idioms as x = y = a, in which the assignment statement y = a returns the value of a, which is then assigned to x. In a statement such as while (f = read()) {}, the return value of a function is used to control a loop while assigning that same value to a variable.

In other programming languages, Scheme for example, the return value of an assignment is undefined and such idioms are invalid.

In Haskell,[8] there is no variable assignment; but operations similar to assignment (like assigning to a field of an array or a field of a mutable data structure) usually evaluate to unit, the value of the unit type, which is typically the type of an expression that is evaluated purely for its side effects.

Chained assignment

A statement like w = x = y = z is called a chained assignment in which the value of z is assigned to multiple variables w, x, and y. Chained assignments are often used to initialize multiple variables, as in

a = b = c = d = f = 0

Not all programming languages support chained assignment.

In some programming languages (C for example), chained assignments are supported because assignments return values. In C++ they are also available for values of class types by making appropriate return type for the assignment operator. This is however strongly discouraged because it also allows values of class types to be assigned to temporary objects, which results in a statement with no effect (assignment to temporary objects is detected as error only for non-class types).

In Python, assignment statements are not expressions and thus do not return a value, but chained assignment is recognized and supported as a special case of the assignment statement.

Parallel assignment

Some programming languages, such as JavaScript (since 1.7), occam 2,[9] Perl,[10] Python,[11] REBOL, Ruby,[12], C++ (since C++11 using tuples), and Windows PowerShell allow several variables to be assigned in parallel, with syntax like:

a,b := 0,1

which simultaneously assigns 0 to a and 1 to b. If the right-hand side of the assignment is an array variable, this feature is sometimes called sequence unpacking:

var list := {0, 1}
a,b := list

The list will be unpacked so that 0 is assigned to a and 1 to b. More interestingly,

a,b := b,a

Swaps the values of a and b. In languages without parallel assignment, this would have to be written to use a temporary variable

var t := a
a := b
b := t

since a:=b ; b:=a leaves both a and b with the original value of b.

Parallel assignment was introduced in CPL in 1963, under the name simultaneous assignment.[13]

Assignment versus equality

A notorious example for a bad idea was the choice of the equal sign to denote assignment. It goes back to Fortran in 1957 and has blindly been copied by armies of language designers. Why is it a bad idea? Because it overthrows a century old tradition to let “=” denote a comparison for equality, a predicate which is either true or false. But Fortran made it to mean assignment, the enforcing of equality. In this case, the operands are on unequal footing: The left operand (a variable) is to be made equal to the right operand (an expression). x = y does not mean the same thing as y = x.[14]
Niklaus WirthGood Ideas, Through the Looking Glass

Beginning programmers sometimes confuse assignment with the relational operator for equality, as "=" means equality in mathematics, and is used for assignment in many languages. But assignment alters the value of a variable, while equality testing tests whether two expressions have the same value.

In some languages, such as BASIC, a single equals sign ("=") is used for both the assignment operator and the equality relational operator, with context determining which is meant. Other languages use different symbols for the two operators. For example:

  • In Pascal, the assignment operator is a colon and an equals sign (":=") while the equality operator is a single equals ("=").
  • In C, the assignment operator is a single equals sign ("=") while the equality operator is a pair of equals signs ("==").

The similarity in the two symbols can lead to errors if the programmer forgets which form ("=", "==", ":=") is appropriate, or mistypes "=" when "==" was intended. This is a common programming problem with languages such as C, where the assignment operator also returns the value assigned, and can be validly nested inside expressions (in the same way that a function returns a value). If the intention was to compare two values in an if statement, for instance, an assignment is quite likely to return a value interpretable as Boolean true, in which case the then clause will be executed, leading the program to behave unexpectedly. Some language processors (such as gcc) can detect such situations, and warn the programmer of the potential error.

Notation

Common textual representations of the assignment include an equals sign (=) and colon-equals (:=). These two forms are typical of programming languages (such as C) that classify assignment as an infix operator.

variable = expression BASIC, Bourne shell, C (and many of its descendants), Fortran, Java, PL/I, Python, Windows PowerShell...
variable := expression Ada, ALGOL, Dylan,[15] Eiffel,[16][17] Pascal[18]

Other possibilities include a left arrow or a keyword, though there are other, rarer, variants:

variable << expression Magik
variable <- expression Objective Caml, R, S
variableexpression APL[19]
variable =: expression J
LET variable = expression BASIC
set variable to expression AppleScript
set variable = expression C shell
Set-Variable variable (expression) Windows PowerShell
val variable = expression ML[20]
variable : expression Macsyma, Maxima
var variable expression mIRC scripting language

Some platforms put the expression on the left and the variable on the right:

MOVE expression TO variable COBOL
expressionvariable TI-BASIC, Casio BASIC
expression -> variable R

Some expression-oriented languages, such as Lisp[21][22] and Tcl, uniformly use prefix syntax for all statements, including assignment.

(setf variable expression) Common Lisp
(set! variable expression) Scheme[23][24][25]
set variable expression Tcl

See also

References

  1. ^ a b c Imperative Programming
  2. ^ Topics in Information Processing
  3. ^ a b c Ruediger-Marcus Flaig (2008). Bioinformatics programming in Python: a practical course for beginners. Wiley-VCH. pp. 98–99. ISBN 9783527320943. http://books.google.com/books?id=kS7Dye-dv54C&pg=PA98. Retrieved 25 December 2010. 
  4. ^ a b c d e Crossing borders: Explore functional programming with Haskell, by Bruce Tate
  5. ^ a b Imperative Programming Languages (IPL)
  6. ^ Mitchell, John C. (2003). Concepts in programming languages. Cambridge University Press. p. 23. ISBN 9780521780988. http://books.google.com/books?id=7Uh8XGfJbEIC&pg=PA23. Retrieved 3 January 2011. 
  7. ^ John C. Mitchell (2003). Concepts in programming languages. Cambridge University Press. pp. 81–82. ISBN 9780521780988. http://books.google.com/books?id=7Uh8XGfJbEIC&pg=PA81. Retrieved 3 January 2011. 
  8. ^ Hudak, Paul (2000). The Haskell School of Expression: Learning Functional Programming Through Multimedia. Cambridge: Cambridge University Press. ISBN 0-521-64408-9. 
  9. ^ INMOS Limited, ed (1988). Occam 2 Reference Manual. New Jersey: Prentice Hall. ISBN 0-13-629312-3. 
  10. ^ Wall, Larry; Christiansen, Tom; Schwartz, Randal C. (1996). Perl Programming Language (2 ed.). Cambridge: O´Reilly. ISBN 1-56592-149-6. 
  11. ^ Lutz, Mark (2001). Python Programming Language (2 ed.). Sebastopol: O´Reilly. ISBN 0-596-00085-5. 
  12. ^ Thomas, David; Hunt, Andrew (2001). Programming Ruby: The Pragmatic Programmer´s Guide. Upper Saddle River: Addison Wesley. ISBN 0-201-71089-7. 
  13. ^ D.W. Barron et al., "The main features of CPL", Computer Journal 6:2:140 (1963). full text (subscription)
  14. ^ Niklaus Wirth. "Good Ideas, Through the Looking Glass". http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.88.8309&rep=rep1&type=pdf. Retrieved 2010-12-04. 
  15. ^ Feinberg, Neal; Keene, Sonya E.; Mathews, Robert O.; Withington, P. Tucker (1997). Dylan Programming. Massachusetts: Addison Wesley. ISBN 0-201-47976-1. 
  16. ^ Meyer, Bertrand (1992). Eiffel the Language. Hemel Hempstead: Prentice Hall International(UK). ISBN 0-13-247925-7. 
  17. ^ Wiener, Richard (1996). An Object-Oriented Introduction to Computer Science Using Eiffel. Upper Saddle River, New Jersey: Prentice Hall. ISBN 0-13-183872-5. 
  18. ^ Moore, Lawrie (1980). Foundations of Programming with Pascal. New York: John Wiley & Sons. ISBN 0-470-26939-1. 
  19. ^ Iverson, Kenneth E. (1962). A Programming Language. John Wiley and Sons. ISBN 0471430145. http://www.softwarepreservation.org/projects/apl/book/APROGRAMMING%20LANGUAGE/view. 
  20. ^ Ullman, Jeffrey D. (1998). Elements of ML Programming: ML97 Edition. Englewood Cliffs, New Jersey: Prentice Hall. ISBN 0-13-790387-1. 
  21. ^ Graham, Paul (1996). ANSI Common Lisp. New Jersey: Prentice Hall. ISBN 0-13-370875-6. 
  22. ^ Steele, Guy L. (1990). Common Lisp: The Language. Lexington: Digital Press. ISBN 1-55558-041-6. 
  23. ^ Dybvig, R. Kent (1996). The Scheme Programming Language: ANSI Scheme. New Jersey: Prentice Hall. ISBN 0-13-454646-6. 
  24. ^ Smith, Jerry D. (1988). Introduction to Scheme. New Jersey: Prentice Hall. ISBN 0-13-496712-7. 
  25. ^ Abelson, Harold; Sussman, Gerald Jay; Sussman, Julie (1996). Structure and Interpretation of Computer Programs. New Jersey: McGraw-Hill. ISBN 0-07-000484-6. 

Translations:

Assignment

Top

Dansk (Danish)
n. - opgave, hverv

Nederlands (Dutch)
opdracht, taak, overdracht, akte van overdracht/-afstand, toewijzing, benoeming

Français (French)
n. - mission, (École) devoir, (Univ) devoir, dissertation, attribution, allocation, affectation, (Jur) cession, transfert (de biens)

Deutsch (German)
n. - Aufgabe, Zuweisung, Übergabe, Hausaufgabe

Ελληνική (Greek)
n. - ανάθεση, ανατεθέν έργο ή καθήκον, ανατεθείσα εργασία, εκχώρηση, παραχώρηση, μεταβίβαση, (στρατ., μτφ.) (εντεταλμένη) αποστολή

Italiano (Italian)
compito, trasferimento, compiti a casa, stanziamento

Português (Portuguese)
n. - designação (f), indicação (f), alegação (f), tarefa (f)

Русский (Russian)
назначение, ассигнование, выделение, распределение, домашнее задание

Español (Spanish)
n. - tarea, cometido, labor, trabajo, transmisión, transferencia, traspaso, deberes, trabajo escolar, asignación, adjudicación

Svenska (Swedish)
n. - tilldelning, överlåtelse

中文(简体)(Chinese (Simplified))
功课, 作业, 工作, 分配

中文(繁體)(Chinese (Traditional))
n. - 功課, 作業, 工作, 分配

한국어 (Korean)
n. - 할당, 지정, 양도, 지령, 문제, 담당

日本語 (Japanese)
n. - 割当て, 宿題, 任命, 指定, 任務

العربيه (Arabic)
‏(الاسم) مهمه, واجب, ردس, مفروض على الطلاب, تنازل عن ممتلكات‏

עברית (Hebrew)
n. - ‮הקצאה, תפקיד, משימה‬


 
 

 

Copyrights:

American Heritage Dictionary. The American Heritage® Dictionary of the English Language, Fourth Edition Copyright © 2007, 2000 by Houghton Mifflin Company. Updated in 2009. Published by Houghton Mifflin Company. All rights reserved.  Read more
Barron's Banking Dictionary. Dictionary of Banking Terms. Copyright © 2006 by Barron's Educational Series, Inc. All rights reserved.  Read more
Barron's Real Estate Dictionary. Dictionary of Real Estate Terms. Copyright © 2008 by Barron's Educational Series, Inc. All rights reserved.  Read more
Roget's Thesaurus. Roget's II: The New Thesaurus, Third Edition by the Editors of the American Heritage® Dictionary Copyright © 1995 byHoughton Mifflin Company. Published by Houghton Mifflin Company. All rights reserved.  Read more
Answers Corporation Antonyms by Answers.com. © 1999-present by Answers Corporation. All rights reserved.  Read more
McGraw-Hill Dictionary of Architecture & Construction. McGraw-Hill Dictionary of Architecture and Construction. Copyright © 2003 by McGraw-Hill Companies, Inc. All rights reserved.  Read more
$copyright.smallImage.alttext West's Encyclopedia of American Law. West's Encyclopedia of American Law. Copyright © 1998 by The Gale Group, Inc. All rights reserved.  Read more
Investopedia Financial Dictionary. Copyright ©2010, Investopedia.com - Owned and Operated by Investopedia US, A Division of ValueClick, Inc. All rights reserved.  Read more
Word Tutor. Copyright © 2004-present by eSpindle Learning, a 501(c) nonprofit organization. All rights reserved.
eSpindle provides personalized spelling and vocabulary tutoring online; sign up free Read more
 Oxford Dictionary of Biochemistry. Oxford University Press. Oxford Dictionary of Biochemistry and Molecular Biology © 1997, 2000, 2006 All rights reserved.  Read more
Random House Word Menu. © 2010 Write Brothers Inc. Word Menu is a registered trademark of the Estate of Stephen Glazier. Write Brothers Inc. All rights reserved.  Read more
Wikipedia on Answers.com. This article is licensed under the Creative Commons Attribution/Share-Alike License. It uses material from the Wikipedia article Assignment (computer science) Read more
Translations. Copyright © 2007, WizCom Technologies Ltd. All rights reserved.  Read more

Follow us
Facebook Twitter
YouTube