Tag

parameter passing

0 views collected around this technical thread.

Code Mala Tang
Code Mala Tang
Mar 9, 2025 · Fundamentals

What Really Happens Inside Python When You Call a Function?

This article explains step by step how Python creates a function object, builds a call stack, handles parameters, executes the body, performs garbage collection, and manages recursion, illustrating each stage with clear code examples and diagrams.

Function CallGarbage CollectionPython
0 likes · 8 min read
What Really Happens Inside Python When You Call a Function?
Tencent Cloud Developer
Tencent Cloud Developer
Jun 8, 2022 · Backend Development

Understanding Go Map and Slice Concurrency Safety and Parameter Passing

The article explains that Go maps and slices are not safe for concurrent reads or writes, describes how the runtime detects map violations, and recommends using sync.Mutex, sync.RWMutex, or sync.Map for maps and external synchronization for slices, while also clarifying that passing these reference types to functions shares underlying data unless explicitly copied.

ConcurrencyGolocking
0 likes · 12 min read
Understanding Go Map and Slice Concurrency Safety and Parameter Passing
IT Xianyu
IT Xianyu
Nov 3, 2020 · Fundamentals

Value vs Reference Passing in Java: Concepts, Stack vs Heap, and Code Examples

This article explains the difference between value passing and reference passing in Java, clarifies how primitive and object types are stored in stack and heap, and demonstrates the behavior with concrete code examples showing how modifications affect (or do not affect) the original arguments.

JavaStackValue vs Reference
0 likes · 6 min read
Value vs Reference Passing in Java: Concepts, Stack vs Heap, and Code Examples
Selected Java Interview Questions
Selected Java Interview Questions
Apr 29, 2020 · Fundamentals

Understanding Java Parameter Passing, Autoboxing, and Swapping Integer Values

This article explains why swapping Integer objects using a simple assignment fails in Java, covering formal vs. actual parameters, value versus reference passing, autoboxing mechanics, the Integer cache, and a reflective workaround that avoids the cache to correctly exchange values.

InterviewJavaautoboxing
0 likes · 9 min read
Understanding Java Parameter Passing, Autoboxing, and Swapping Integer Values
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Dec 5, 2019 · Fundamentals

Understanding Java: Pass‑by‑Value vs Pass‑by‑Reference Explained

This article clarifies the long‑standing confusion about whether Java uses pass‑by‑value or pass‑by‑reference by defining the concepts, distinguishing actual and formal parameters, and demonstrating with primitive and object examples that Java always passes arguments by value, using the reference as the value for objects.

JavaReferencecode examples
0 likes · 8 min read
Understanding Java: Pass‑by‑Value vs Pass‑by‑Reference Explained
Test Development Learning Exchange
Test Development Learning Exchange
Jul 30, 2018 · Fundamentals

Understanding Python's id() Function and Parameter Passing Mechanics

This article explains Python's id() function, how objects and references work, and demonstrates parameter passing behavior with detailed code examples illustrating memory address handling for immutable and mutable types, including lists, integers, and strings, and clarifies why variable assignments may share the same address.

ImmutableMutablePython
0 likes · 8 min read
Understanding Python's id() Function and Parameter Passing Mechanics