fbpx
วิกิพีเดีย

การเรียกกลับ (การเขียนโปรแกรม)

ในการเขียนโปรแกรมคอมพิวเตอร์ การเรียกกลับ (อังกฤษ: callback) คือโค้ดปฏิบัติการที่ส่งผ่านไปยังโค้ดอื่น ๆ ในรูปของอาร์กิวเมนต์ ซึ่งจะถูกกำหนดว่าจะต้องเรียกกลับ (ปฏิบัติการ) อาร์กิวเมนต์ดังกล่าวในเวลาที่กำหนด โดยอาจเกิดขึ้นทันที (แบบซิงโครนัส) หรือในภายหลัง (แบบอะซิงโครนัส) โดยมีจุดประสงค์เพื่อระบุฟังก์ชันหรือซับรูทีนเป็นเอนทิตีโดยขึ้นอยู่กับภาษาเขียนโปรแกรมที่ใช้ โดยอาจคล้ายกับตัวแปรมากหรือน้อยก็ได้

การเรียกกลับมักกลับมายังระดับตัวเรียกเดิม

ภาษาโปรแกรมแต่ละภาษาจะรองรับการเรียกกลับในหลายวิธี โดยมักใช้ร่วมกับซับรูทีน นิพจน์แลมบ์ดา บล็อก หรือตัวชี้ฟังก์ชัน

แหล่งข้อมูลอื่น

  • Basic Instincts: Implementing Callback Notifications Using Delegates
  • Implement callback routines in Java 2008-09-16 ที่ เวย์แบ็กแมชชีน
  • Implement Script Callback Framework in ASP.NET
  • (archived from the original on July 6, 2011)
  • Style Case Study #2: Generic Callbacks

การเร, ยกกล, การเข, ยนโปรแกรม, ในการเข, ยนโปรแกรมคอมพ, วเตอร, การเร, ยกกล, งกฤษ, callback, อโค, ดปฏ, การท, งผ, านไปย, งโค, ดอ, ในร, ปของอาร, วเมนต, งจะถ, กกำหนดว, าจะต, องเร, ยกกล, ปฏ, การ, อาร, วเมนต, งกล, าวในเวลาท, กำหนด, โดยอาจเก, ดข, นท, นท, แบบซ, งโครน, . inkarekhiynopraekrmkhxmphiwetxr kareriykklb xngkvs callback khuxokhdptibtikarthisngphanipyngokhdxun inrupkhxngxarkiwemnt sungcathukkahndwacatxngeriykklb ptibtikar xarkiwemntdngklawinewlathikahnd odyxacekidkhunthnthi aebbsingokhrns hruxinphayhlng aebbxasingokhrns odymicudprasngkhephuxrabufngkchnhruxsbruthinepnexnthitiodykhunxyukbphasaekhiynopraekrmthiich odyxackhlaykbtwaeprmakhruxnxykidkareriykklbmkklbmayngradbtweriykedim phasaopraekrmaetlaphasacarxngrbkareriykklbinhlaywithi odymkichrwmkbsbruthin niphcnaelmbda blxk hruxtwchifngkchnaehlngkhxmulxun aekikhBasic Instincts Implementing Callback Notifications Using Delegates Implement callback routines in Java Archived 2008 09 16 thi ewyaebkaemchchin Implement Script Callback Framework in ASP NET Interfacing C member functions with C libraries archived from the original on July 6 2011 Style Case Study 2 Generic Callbacksekhathungcak https th wikipedia org w index php title kareriykklb karekhiynopraekrm amp oldid 9559867, wikipedia, วิกิ หนังสือ, หนังสือ, ห้องสมุด,

บทความ

, อ่าน, ดาวน์โหลด, ฟรี, ดาวน์โหลดฟรี, mp3, วิดีโอ, mp4, 3gp, jpg, jpeg, gif, png, รูปภาพ, เพลง, เพลง, หนัง, หนังสือ, เกม, เกม