由买买提看人间百态

topics

全部话题 - 话题: object
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)
b******y
发帖数: 1684
1
来自主题: Java版 - 问个Object.hashCode()的问题
这么说把,不遵守这个convention的object是次品

always
N******7
发帖数: 1297
2
根本不需要check object,一行搞定。
(Class) ((ParameterizedType) getClass()
.getGenericSuperclass()).getActualTypeArguments()[0];
N******7
发帖数: 1297
3
根本不需要check object,一行搞定。
(Class) ((ParameterizedType) getClass()
.getGenericSuperclass()).getActualTypeArguments()[0];
z*******3
发帖数: 13709
4
来自主题: Java版 - Java Object 一定在 Heap 里吗
这个我狗了一下哈
发现permgen只有hotspot有实现
其它的jvm都没有实现,而且在逐步淘汰permgen
那方法区理论上已经算是heap的一部分来实现了
那笼统地可以认为都在heap里面
规范里叫做方法区的抽象区域,与“永久代”并不等价。只是在现在的Oracle (Sun)
HotSpot使用“永久代”来实现方法区而已。
服务器端主流的高性能JVM现在就三种,一个是HotSpot(其中Sun的原始版本用得最多
,由其衍生出来的Azul版与HP版也颇有应用;Apple的Mac OS上的JVM也是从Sun的版本
衍生出来的,不过拿Mac来做服务器的大概不多吧);一个是Oracle (BEA)的JRockit;
还有一个是IBM的JVM,现在主要在用的是J9。这之中,只有HotSpot是有PermGen的,而
JRockit与J9都没有;连Azul版HotSpot也经过改进早已去除了PermGen。概念上说这些
JVM都有符合规范的“方法区”,但并不一定要用PermGen来实现就是了。
甚至连Oracle (Sun)的HotSpot也实质性开始去除PermGen的工作了。请参考最近... 阅读全帖
F****n
发帖数: 3271
5
来自主题: Java版 - Java Object 一定在 Heap 里吗
Java 7 escape analysis
Objects only referenced by local variables are stored in stack instead of
heap.
W***o
发帖数: 6519
6
在看core java volume II,开始的object stream and serilization,看着挺晕的,想
先问问这个有啥大用出不?如果没有,就先跳过去了
e*****t
发帖数: 1005
7
刚刚不小心回到unless站内了。
不用那么麻烦, 直接用reflection做就好了。
先用class.forName load class. 然后instantiate the class, get a class object.
you can then do whatever you want.
note: if you want to monitor the state in real time, u then need to run its
main in a different thread.
a*******e
发帖数: 3021
8
可能像excel里面那样插入pdf object然后这个pdf文件就被保存在这个excel文件里了
嘛?
双点就可以打开了。
r*****r
发帖数: 397
9
来自主题: Programming版 - How to initialize object in constructor?
One rule for constructor:use initialization instead of assignment. Is this
also true for object?For example,I have a simple class
Point{
public:
...
private:
float x;
float y;
}
Suppose I have another class and want to use a point as a private member,
PointColl{
public:
//default constructor
PointColl();
PointColl(const PointColl & thePoint);
...
private:
int number;
Point* thePointer;
}
For the default constructor, can I do like this
PointColl::PointColl():number(0)
{
thePointer = n
y****i
发帖数: 156
10
来自主题: Programming版 - How to initialize object in constructor?
Yes, the rule applied to object.
Reason
y****i
发帖数: 156
11
来自主题: Programming版 - How to initialize object in constructor?
Yes.
For object, it is better to init in init list
for builtin types or pointer, you can use both ways.
However, let p = new A() int constructor is much clear that in the init-list.

for pointers, better use new to create
instead: of initialization.Right?Thank you .
l********n
发帖数: 200
12
【 以下文字转载自 Database 讨论区 】
发信人: lookforfun (lookforfun), 信区: Database
标 题: 请教:how to call a COM object in a stored procedure?
发信站: BBS 未名空间站 (Sat Nov 11 15:59:33 2006)
编译了一个DLL文件。怎么Register这个文件呢?
必须放在MS SQL Server上吗?
放在客户端计算机上,可以吗?
s*****r
发帖数: 59
13
来自主题: Programming版 - QueryTable object in excel
whenever opened an excel, for certain sheet in that excel workbook, a
querytable object already created, how could I do that? Thanks.
p****r
发帖数: 7
14
couldn't find any good examples online. can anyone give me a good sample?
i use SOAP::Lite to invoke the call and get the result back. it's an object
written by Java. how can i define
the class in Perl? i tried wsdl2perl. did not get any luck.
p****r
发帖数: 7
15
the server side provides wsdl and the retunred object class is written by
Java. but i dont know how to parse the returned info. should i use SOAP::
WSDL module?
b***y
发帖数: 2799
16
来自主题: Programming版 - 问个object suicide问题
class base
{
public:
f(void) { delete this; }
};
class derived : public base
{
};
int main()
{
derived D = new derived();
D->f();
}
which object is deleted?
s*****y
发帖数: 1
17
I need to get all data types and size out of a big elf object file,
including those defined but not being used? Anyone knows a way to do that?
I am doing research on dwarfdump, which might be able get those info out.
Anybody has experience on that?
Thanks.
f**y
发帖数: 138
18
来自主题: Programming版 - reference to objects in Vector or Map
Never mind. The objects in Java Vector or Map are already references.
c***g
发帖数: 472
19
来自主题: Programming版 - 请大家推荐Object-Oriented Design 的书
想看看Object-Oriented Design相关方面的书,请问谁可以推荐一本么? C++的最好了.
谢谢了
w****i
发帖数: 964
20
I tried your code and the 10 items in test_list point to 10 different
objects.
Can you describe more details?
P********e
发帖数: 2610
21
来自主题: Programming版 - 为什么derived object没有vptr?
继承object转换到父类,来检验da有没有完整的父类subobject
t****t
发帖数: 6806
22
来自主题: Programming版 - 请教显示object name的问题(c++)
for one thing, a c++ object does not have to have a name. so the "identity"
must not be "name".
b******n
发帖数: 592
23
来自主题: Programming版 - 请教显示object name的问题(c++)
加一个data member的方法没有问题。你可以提供一些MACRO简化declaration。感觉
你需要的不是具体的class的名字,而是object的名字,用来更好的显示错误信息,所以
这样算是唯一的办法了。再有就是在catch的时候加上合适的信息也可以。
v****s
发帖数: 1112
24
sorry, im asking how JVM is gonna call "object.finalize()", not by my code.
since my java code is not gonna take care of gc.
e*****w
发帖数: 144
25
use mutable arguments such as pointers.

B object and an int
and
e****d
发帖数: 895
26
Return a boost::tuple

B object and an int
and
G****A
发帖数: 4160
27
I tried (in g++) to bound a reference to a second object. It did not give
me any error.
r*******y
发帖数: 1081
28
来自主题: Programming版 - const object
this means default ctor added by compiler will not guarantee anything since
it is indeterminated ?

the
object
is
t****t
发帖数: 6806
29
来自主题: Programming版 - const object
you just need to provide a ctor for const object, that's the rule.

since
s******o
发帖数: 2233
30
来自主题: Programming版 - const object
man did u remember all clauses of the standard...

the
object
is
G*****9
发帖数: 3225
31
来自主题: Programming版 - Linux and Shared object
Thanks. But it does not work for me. For my case, since STL objects are used
in the library, gcc itself does not apply. I have to use g++.

will
and
requirement
linker
r*****3
发帖数: 143
32
来自主题: Programming版 - Learning Cocoa with Objective-C, 3rd Edition
Title:Learning Cocoa with Objective-C, 3rd Edition
By: Paris Buttfield-Addison, Jonathon Manning
Publisher:O'Reilly Media
Ebook: December 2012
Language: English
Format: PDF/EPUB
Size: 16.8MB
Pages: 322
Download:
http://ul.to/7lcxper3
i*****o
发帖数: 1714
33
来自主题: Programming版 - Object c能火几年
这个很难说。其实就是赌了。
不过objective c的问题是太容易上手了,是个人都能用,所以挣不到大钱。

★ 发自iPhone App: ChineseWeb 7.8
c******o
发帖数: 1277
34
Objective C要不是apple 坚持,大概没人用吧
c******o
发帖数: 1277
35
Objective C要不是apple 坚持,大概没人用吧
b******0
发帖数: 101
36
很难说,看你要干啥。Objective C 只有做iPhone,其他都不灵。
S*A
发帖数: 7142
37
来自主题: Programming版 - 大牛们对Object C有何点评?
声明一下,只是小混混,不是大牛。
ObjC 我觉得是超级优美而且效率又高的语言。
ObjC 和 C 完全兼容,无缝链接。C++和 C99是不可能
能完全兼容的。我隐约记得 template 和 C99 的结构上
的是无法融合的。
ObjC 的 interface 要比 C++ 的多重继承优美很多而且
灵活很多。整个语言也要比 C++简单很多,C++ 的 template
过于复杂。ObjC 的 OO 更接近 Small Talk。
ObjC 的语言本身是多平台的, gcc-objc Linux 也有,
而且 Linux 上面也有 GNUStep 这样的东西。
ObjC 不能很好推广,其中主要一个原因在与库。因为
只有 Apple 一家用,所以语言本身的标准库界定不明显。
很多 Apple 的库在其他 OS 上面运行不起来,给这个语言的
移植性造成了一定困难。单单是语言本身,移植性是非常好
的,基本上和 C 一样,关于 Obj 基本上没有什么变化。
特别是 Clang 以后,很多平台都可以跑。
ObjC 的 Object Call 实现是非常精妙的,用很少的代价和
性能(机器码的数量和复... 阅读全帖
c*********e
发帖数: 16335
38
来自主题: Programming版 - 大牛们对Object C有何点评?
windows,mac是同期竞争对手,他们发现,只有用自己的語言,才能把自己的产品牢牢
控制住。比如,要用objective c,就必须用xcode做ide.这样用户必须买mac的产品,而
不是象java那样,用dell卖的win7或者macbook pro,都可以用eclipse做ide.
apple做得更绝,连iphone充电线都是自家的。android的好歹可以用黑莓的充电线。

cc
S*A
发帖数: 7142
39
来自主题: Programming版 - 大牛们对Object C有何点评?
ObjC 本来就是扩展啊。C 里面本来没有 class object 这些东西,
肯定是要引入新的语法的。至于是方括号还是什么的。
其实我觉得现有的ObjC 就很好,看着很清楚。
不会搞不清这个是 Obj Call 还是普通 C 调用。
S*A
发帖数: 7142
40
来自主题: Programming版 - 大牛们对Object C有何点评?
object C 可以用自己的 IDE。就是个命令行编译的东西。
我以前项目是自己写 Makefile 的。
l*********s
发帖数: 5409
41
来自主题: Programming版 - std::vector里面的object存在哪里?
on the heap. the object has detor which compiler will call.
n****1
发帖数: 1136
42
来自主题: Programming版 - OOP里面的Object其实是actor
你不过在重复和强化我的观点罢了。 就拿桌子为例, 桌子是死的 为啥不能用plain
old data来表示?它有啥method?
;这个世界万物皆物体 (object)
到底是谁走火入魔?
读完帖子再喷是交流的基本前提
g*****g
发帖数: 34805
43
来自主题: Programming版 - OOP里面的Object其实是actor
这不过是举个例子,桌子是死的也罢。为啥银行帐户不能用object来表示,莫非你想说
balance也是死的?
你大谈物体必须有人格,根本就是违反常识的事情。
n****1
发帖数: 1136
44
来自主题: Programming版 - OOP里面的Object其实是actor
哦, 莫非balance是活的? 其他人如果不去操作它, 它的值会变化么?
我顶楼已经举了例子,BankAccount不适合拥有method,而Banker是改变账户的actor,可
以有method. Banker是很好的object例子, 但account不是。
g*****g
发帖数: 34805
45
来自主题: Programming版 - OOP里面的Object其实是actor
物体和object本来就是中英翻译罢了。物体和对象本来就是一个东西,对象抽象一点可
以包括虚拟的物体。具体到语言,无
非是个建模的工具,
各种feature都是取舍,有好处同样也有坏处。跟世界完全一致本来就不是设计语言的
要求,也做不到。
语言是工具,用来建模的,啥时候语言跟物理必须等价了。你一脑残理论,还来劲了。
n****1
发帖数: 1136
46
来自主题: Programming版 - OOP里面的Object其实是actor
Tell me about it! How can I understand "wait/notify" method of an Account
object?
怀疑版上70%以上的人身攻击是你挑起的。 对骂脑残我没兴趣。
c*******9
发帖数: 9032
47
来自主题: Programming版 - OOP里面的Object其实是actor
oo是比较僵化的,4条腿是桌子,3条,2条,1条就不是了?2个面就一定不是桌子了?
这种跟据属性确定object只适合比较静态常规情况,不适合高动态应用。
n****1
发帖数: 1136
48
来自主题: Programming版 - OOP里面的Object其实是actor
Encapsulation is not a privilege but a basic requirement of all good
architecture, even in imperative/FP.
However private member of objects is not the only way to do encapsulation.
Even in smalltalk/javascript, which advocates themselvs as OOP more than FP,
there is no private member. Encapsulation is achieved in modular/file level.
I don't see any reason that FP is anti-encapsulation.
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)