TIP: Click on subject to list as thread! ANSI
echo: aust_c_here
to: Ben Elliston
from: Frank Malcolm
date: 1993-08-12 20:22:04
subject: Thunks

Hi, Ben.

BE>Could someone please explain the meaning of this term, please? :-)

In some languages it is legal to pass an expression (rather than a
variable) as an actual parameter to a function where the corresponding
formal parameter is specified as call-by-name. This is handled by the
compiler generating an "invisible" function to evaluate the expression
EACH TIME the formal parameter is referenced. Calling this
compiler-generated function is known as "accidental entry" or
"spontaneous entry" or a "thunk".

Regards, FIM.

 * SLMR 2.1a * Hi, I'm Chip. Micro Chip. Eight-o-three-eighty-six!

--- Maximus/2 2.01wb

* Origin: Sydney PC Users Group - COMPAQ BBS (3:712/505)
SEEN-BY: 54/54 99 711/401 430 807 808 809 932 934 712/218 407 414 505 506 515
SEEN-BY: 712/517 537 618 623 627 704 719 713/306 888 714/906
@PATH: 712/505 623 54/99 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.