Logically, they are stored in a last-in, first-out stack, yes. As Jan says, though, there might not be any actual stack data structure present at runtime.
On Thu, 3 Jan 2019 at 10:43, 伊藤和也 <[email protected]> wrote: > Are deferred function calls stored in a stack? > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
