Re: [問題] 將callback轉型成原本的class
※ 引述《sbrhsieh (十年一夢)》之銘言:
: : --
: : ◆ From: 118.168.127.139
: : 推 PsMonkey:其實... 用中文感覺很怪...... 10/14 21:16
: : → adrianshum:我個人是寧願用 pointer 一詞。reference 常有不清混淆 10/14 22:33
: : → adrianshum:還有其實 Java 的 ref 根本就是概念上的 pointer,只是 10/14 22:34
: : → adrianshum:沒有像C/C++那種 pointer arithematics 而己 10/14 22:34
: : → Chikei:ptr +1,用ref常會有人問call by ??跟參照到哪個實體的問題 10/14 22:59
: 主要是看個人對 pointer 的定義。
: 我個人認為能作 pointer arithmetic 的才叫 pointer。
呃,我想Java對pointer的定義正好是不能做poitner arithemetic的pointer
JLS7:
4.1 The Kinds of Types and Values
There are two kinds of types in the Java programming language: primitive
types (§4.2) and reference types (§4.3). There are, correspondingly,
two kinds of data values that can be stored in variables, passed as
arguments, returned by methods, and operated on: primitive values (§4.2)
and reference values (§4.3).
4.3 Reference Types and Values
4.3.1 Objects
An object is a class instance or an array.
The reference values (often just references) are ***pointers*** to these
objects, and a special null reference, which refers to no object.
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 1.34.138.208
→
10/15 09:23, , 1F
10/15 09:23, 1F
→
10/15 15:46, , 2F
10/15 15:46, 2F
→
10/15 15:48, , 3F
10/15 15:48, 3F
→
10/15 22:06, , 4F
10/15 22:06, 4F
→
10/15 22:06, , 5F
10/15 22:06, 5F
→
10/15 22:07, , 6F
10/15 22:07, 6F
→
10/15 22:07, , 7F
10/15 22:07, 7F
→
10/15 22:24, , 8F
10/15 22:24, 8F
→
10/16 06:27, , 9F
10/16 06:27, 9F
→
10/16 06:29, , 10F
10/16 06:29, 10F
→
10/16 06:29, , 11F
10/16 06:29, 11F
推
10/16 13:01, , 12F
10/16 13:01, 12F
→
10/16 13:02, , 13F
10/16 13:02, 13F
推
10/16 13:25, , 14F
10/16 13:25, 14F
→
10/16 13:28, , 15F
10/16 13:28, 15F
→
10/16 13:30, , 16F
10/16 13:30, 16F
推
10/16 17:24, , 17F
10/16 17:24, 17F
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 9 之 9 篇):
java 近期熱門文章
PTT數位生活區 即時熱門文章