After running a certain operation a value is taken from field A to field B. After the operation field A is empty. Is there a word or better phrase for this?
During the operation field A _________ [becomes empty].
Andrew Leach is right in saying is emptied is better than empties here.
However, for your particular example, I’d suggest:
During the operation field a is cleared.
When relating to GUIs, it’s a much more common way of expressing that the content has been removed from an input field.
The verb empty can be transitive or intransitive.
[with object] Remove all the contents of (a container)
[no object] (of a place) be vacated by people in it
Thus, the field empties.
Usually, though, where something happens as a result of something else (like a value being taken from a place), the action of an agent is implied by using the passive voice, is emptied.
Another word when used as a verb may be,
- 1.1 - Cause or allow (liquid) to run off or out of something.
- 2.1 - Cause (a valuable resource) to be lost or used up.
How about depleted?
During the operation field A is depleted.
This sounds like a computer operation.
Depending on the type of variable, one possibility might be
nullify. This wouldn't apply to scalar fields (which can't be set to null).
- To make null; invalidate.
The word vacate could also work, in the form is vacated:
During the operation field A is vacated.
If it is computer-related, one other option for a GUI field is blanked.
During the operation field A was voided.
Discharge or drain away (water, gases, etc.) ‘the gases are usually voided into the mechanism’ More example sentences
2.2 usually as adjective voided Empty or evacuate (a container or space) ‘a fully voided core assembly’
This sounds like a computer operation.
Depending on the context, one possibility is
initialized. This is typically used when the value of a variable is set to an initial value in order to be ready for use, especially the case with object variables for which existing state is cleared in the process of preparing for new use.
From the original question, it seems like some sort of move operation is taking place, which is typically not a single operation in a computer sense. Such an operation would typically involve a copy of a value from field A to B, then a modification of state of field A. These steps might be encapsulated within a function. Thus the way that the 'emptying' takes place is specific to the implementation of the function, and the data type of variable whose state is being modified. I.e. the meaning of 'empty' is semantic.
- To set (a starting value of a variable).
During the operaion, field A is invalidated
This is an indicator that the previous value no longer applies, and was "blanked out" for being obsolete.
During the operation field a becomes diminished.
During the operation field a diminishes.
This is simply a synonym for empty, like Andrew Leach already said, the word empty can be used as both a transitive and intransitive verb so you would be fine to say:
During the operation field a empties. (intransitive)
During the operation field a empties itself. (transitive)
In comments, John Lawler wrote something that is important enough that it should be searchable here, so I am installing it as a "Community Wiki" answer:
Empty is one of the words that has a stative adjective form (The pot is empty), an inchoative verbal form (That pot empties fast), and a causative verbal form (He emptied that pot slowly) that all have the same shape. Unlike, for instance, full, which is only an adjective, but has related inchoative (The pot filled) and causative (He filled the pot). Or dead, which has a related inchoative die, and an unrelated causative kill. Zero derivation is quite common.
The sentence may be written as:
During the operation field A is unoccupied.
or it may be like this:
During the operation field A is exhausted.
During the operation field A is expended.