// Enter pushes a new frame onto the stack, configures, and returns it.
Enter pushes a new frame onto the stack, configures, and returns it.
// Enter pushes a new frame onto the stack configures and returns it .
func (s *stack) Enter(intercept FacadeFn, slotCount int) *frame {
	if s.depth == len(s.data) {
		temp := make([]frame, len(s.data)*3/2+1)
		copy(temp, s.data)
		s.data = temp
	}
	entering := &s.data[s.depth]
	s.depth++
	entering.Count = slotCount
	entering.Intercept = intercept
	entering.Idx = 0
	if slotCount > fixedSlotCount {
		entering.Overflow = make([]Action, slotCount-fixedSlotCount)
	}
	return entering
}
func ( s * stack ) Enter ( intercept FacadeFn , slotCount int ) * frame { if s . depth == len ( s . data ) { temp := make ( [ ] frame , len ( s . data ) * 3 / 2 + 1 ) copy ( temp , s . data ) s . data = temp } entering := & s . data [ s . depth ] s . depth ++ entering . Count = slotCount entering . Intercept = intercept entering . Idx = 0 if slotCount > fixedSlotCount { entering . Overflow = make ( [ ] Action , slotCount - fixedSlotCount ) } return entering }
Enter pushes a new frame onto the stack, configures, and returns it.
Enter pushes a new frame onto the stack configures and returns it .