由买买提看人间百态

topics

全部话题 - 话题: invocation
首页 上页 1 2 3 4 (共4页)
X****r
发帖数: 3557
1
来自主题: Programming版 - c preprocess question
宏函数替换的时候所有不是用在#或##里的参数也会被宏展开,所以你这里g和h
并不等价。
g(f((1,2),3)) => "f((1,2),3))"
h(f((1,2),3)) => g(f((1,2),3)的宏展开),
但是f((1,2),3) => (1,2)3 编译错误
C89 6.10.3.1 Argument substitution
1 After the arguments for the invocation of a function-like
macro have been identified, argument substitution takes
place. A parameter in the replacement list, unless
preceded by a # or ## preprocessing token or followed by
a ## preprocessing token (see below), is replaced by the
corresponding argument after all
z****e
发帖数: 2024
2
来自主题: Programming版 - 这个c++ static var 很有意思
红猪侠的semantics是越来越高级了。
我理解,这个编译器自动生成的记录,也是以后“条件析构”conditional
destruction 的依据。
很久以前不是所有全局静态都要在startup时候初始化么?但是C++有了lazy
evaluation 机制,就能initialize on invocation.这条记录,就是析构的时候看用不
用析构。
c**********e
发帖数: 2007
3
来自主题: Programming版 - C++ Q16: dereferencing
struct X {
int foo() { return 0; }
} x;
struct Y { static int (X::*p)(); };
int (X::*Y::p)()=X::foo;
Given the declarations in the sample code above, which one of the following
invocations is correct?
a) (x.*Y::p)();
b) (x->*Y::p)();
c) (Y::p)(x);
d) (Y::x.*p)();
e) (x.Y::p)();
X****r
发帖数: 3557
4
来自主题: Programming版 - C的问题,高手请指点
Depends on what does 'wrong place' mean. If it means 'a place
different from the original caller site of this particular
function invocation', then modifying the return address stored
in the stack frame would cause that. How to do it is highly
architecture-dependent. A non-standard use of setjmp/longjmp
may achieve the same, too.
d****p
发帖数: 685
5
来自主题: Programming版 - 问一个 copy constructor 的问题 (C++)
A a = 1
does the following things:
claim memory on stack in sizeof(A)
pass the address of the claimed memory to the first hidden parameter of A(
int) for invocation.
Execute A(int)
now a is initialized. There is no optimization involved.

constructor,
译。
,
d******i
发帖数: 7160
6
Because ur solution didn't comply to the requirement of what pop_heap asks
in VS2008, though in VC6 such a check is not imposed (and the MSDN for pop_
heap of VC6 is not precise, either)
My question is very clear in OP - seeking a solution with only one
invocation of pop_heap, not push_heap then pop_heap. I tested this two-pass
solution is correct on VC6 and VS2008.
But it appears like there's no one-pass solution (only with pop_heap) that
can survive VS2008, like the one you suggested;
g*****g
发帖数: 34805
7
来自主题: Programming版 - 一个嵌入式系统的设计构思
给微软抹粉真是嘛都敢说。
http://www.javaworld.com/javaworld/jw-10-1997/jw-10-lawsuit.htm
Specifically, Microsoft made the choice last week to ship products it claims
are fully Java 1.1 compliant, but which failed to pass the Java 1.1
compatibility tests the company received from Sun in February.
Specifically, Microsoft does not support the Java Native Interfaces (JNI)
or the Remote Method Invocation (RMI), and it has altered the Core Java
class libraries with about 50 methods and 50 fields that are not part... 阅读全帖
o**2
发帖数: 168
8
来自主题: Programming版 - FMP vs ExecutorService/Future
Spring @Async
这个可以从方便性,可靠性,和thread safe等角度来比较。(我没有实际用过Spring
Async,所依靠的都是临时search出来的reading。如有错误,欢迎指正。)
Async比Java标准的ExectorService强多了,这里就不再提ExectorService了,只比较
Async和FMP。事先说一下,FMP是完全没有静态type checking的,这样做的原因和好处
就不展开了,先认个输。
方便性
1,Async method只能返回void或Future,而FMP的impl object对return value没有任
何限制。这对caller来说,是一样的,但对那个method impl来说,是不同的。Spring
里同一个object的其它method如果要调用这个async method的话,就不能用sync的方式
了。而FMP的impl object完全是一个pure object,因为对外的是active object而不是
这个impl object,于是对外async,对内sync;当然对内也可以是async的,但要... 阅读全帖
z******g
发帖数: 271
9
来自主题: Programming版 - 编程版目睹之怪现象。
同意好虫的说法。既然用户可以立即得到响应而不是block waiting就说明不是latency
的问题。我记得这种方法叫decoupled invocation pattern。用户得到响应之后之后等
待时间过长是因为服务器大规模处理能力不足,那就应该是scalability problem。
v******y
发帖数: 84
10
这是我做的10题,大家试试
以后公布答案
Which of the following is the most portable way to declare a C preprocessor
constant for the number of seconds in a (non-leap) calendar year?
Response:
#define SECONDS_PER_YEAR 60 * 60 * 24 * 365
#define SECONDS_PER_YEAR 60 * 60 * 24 * 365;
#define SECONDS_PER_YEAR (60 * 60 * 24 * 365UL)
#define SECONDS_PER_YEAR (60 * 60 * 24 * 365)
Score 1 of 1
Question:
Which of the following is the most flexible way to declare a C preprocessor
macro that takes two arguments and returns th... 阅读全帖
l**********n
发帖数: 8443
11
来自主题: Programming版 - DNode
a node.js library for asynchronous bidirectional remote method invocation
http://substack.net/dnode
这个很方便啊
s******e
发帖数: 128
12
来自主题: Security版 - AES-GCM 算法
这有精通AES-GCM算法的吗?
想搞清楚那个invocation constraint是怎么算出来的
i**********r
发帖数: 36
13
来自主题: Unix版 - [转载] 再请教高手
【 以下文字转载自 Linux 讨论区 】
【 原文由 interstellar 所发表 】
I have a directory for certain purpose. Whenever i save a file
to that directory, I need to run a program upon the saved file.
My question is, Can the saving-file event intrigue the invocation
of my program AUTOMATICALLY? If can, how?
thanks!!!
b***l
发帖数: 15
14
来自主题: Unix版 - how to change login shell?
Yes, that woked. -norc will not allow it to invoke any rc file and such
prevents the recursive invocation of bash.
thanks, man

dir.
.cshrc
does
B*M
发帖数: 1418
15
来自主题: Biology版 - Academia's Crooked Money zz
讲的很实际啊
http://sciencecareers.sciencemag.org/career_magazine/previous_i
Follow the money!” According to the film All the President's Men, this
advice from the shadowy informant known as Deep Throat guided Washington
Post reporters Bob Woodward and Carl Bernstein in cracking the Watergate
conspiracy.
The strategy also serves Georgia State University economist Paula Stephan
extremely well in her illuminating and accessible new book, How Economics
Shapes Science. A leading expert on the scientific l... 阅读全帖
s******e
发帖数: 128
16
来自主题: EE版 - AES-GCM算法
这有精通AES-GCM算法的吗?
想搞清楚那个invocation constraint是怎么算出来的
j****i
发帖数: 496
17
In real life, the cop will clarify the situation either secure a waiver or
get the accused clearly invoke his Miranda rights (either right to silence
or right to counsel or both). In law school exam, you argue both ways (
failure to invoke Miranda vs. not voluntary, knowing and intelligent waiver)
. I tend to think that silence is an effective invocation of right to
silence, but invoking right to counsel requires an affrimative statement.
Further questioning maybe okay (1) if there is no custo
m*****e
发帖数: 4193
18
Java is a great thing for distributed computing: platform-independence,
transparent networking, remote method invocation, and security.
I think Java should win in this field.
s******y
发帖数: 352
19
来自主题: Statistics版 - 【大包子】问个macro的问题
the purpose of using %nrstr is to delay the macro resolution. if there is no
%nrstr, the marco will be resolved within the datastep. the statements in
the macro will be generated and put into the statement stack. after
finishing the data step, the statement will be popped up for execution.
the statements in the stack without using %nrstr:
proc univariate data=a1 ;
var resid;
qqplot;
histogram / normal;
run;
But with the %nrstr, the % sign would be quoted and invisible to the macro
com... 阅读全帖
b*****e
发帖数: 223
20
来自主题: Statistics版 - Unix/Linux scripts for SAS
Our system setting:
WORKINIT Erase all files from WORK library at SAS invocation
WORKTERM Erase all files from WORK library at SAS termination
No way to retrieve work data leh.......
w*******e
发帖数: 666
21
来自主题: Statistics版 - 求教一个 proc sql 的问题!
proc sql ;
create table two as
select * from one
where hist like '%STR%' or hist like '%ST1%' or hist like '%ST2%';

quit;
写了上面的code,但是sas报错:
ERROR: Expected open parenthesis after macro function name not found.
和WARNING: Apparent invocation of macro ST2 not resolved。
请问如果想选出变量hist里包含STR 或者 ST1 或者ST2字符,该怎么修改上面的code呢
?非常感谢!
m*********k
发帖数: 10521
22
来自主题: WBCenter版 - PDA 版申请代发包子
"[PDA]zher Oct 21 ● 到这里签名的请留言,回头发包子"
成功奖励 20 伪币的用户: wxwxw, rainaway, bleakhand, hillcrest, goback211,
mit09, spivoler, norweus, Suger, doublesea, texas2007, autumnworm, retain,
pathdream, firesquall, waltz, balian, tinwah, AscenZ, Savant, baicaiyezi,
TheSun, figos, sunjoaustin, FatherJoey, epicureanism, Mav07, jzxu, trade4,
littlenetbug, Houdun, guohun, hzkb, realq, ponyboy, googlebot, take5,
TimeBug, Bodhidharma, maywind, bbdou, dreamdate, wuyan, collagen, jingriver,
straybirds, kc, se... 阅读全帖
z*******n
发帖数: 1034
23
http://www.informit.com/articles/printerfriendly/2211695
Introduction to "The Java Language Specification, Java SE 8 Edition"
By James Gosling, Gilad Bracha, Alex Buckley, Bill Joy, Guy L. Steele
Date: Jun 12, 2014
The Java® programming language is a general-purpose, concurrent, class-
based, object-oriented language. It is designed to be simple enough that
many programmers can achieve fluency in the language. The Java programming
language is related to C and C++ but is organized rather dif... 阅读全帖
A****6
发帖数: 218
24
来自主题: _Auto_Fans版 - 今天去 mini 地雷,有点搞笑……
告诉大家一消息,地雷今天来 email 说,800 就 800,来吧。不过下来这几天忙其他
的,都懒得去买了,反正 LD 说的也是,不急。
刚刚准确算了一下,给有兴趣的兄弟参考,是 invoce-130。喜欢砍的话应该至少还能
多砍 200。
c**o
发帖数: 549
25
来自主题: _Bimmer版 - 2011 328基本款的lease 439合适吗
你最好在去之前查出车的invoce, 别人拿到的residual和MF等,edmunds.com的论坛上
有讨论
通过email或电话多联系几个dealer,找个态度好的,基本把价格敲定再去买
bmw这几天还有holiday credit,还是买车的好时候
首页 上页 1 2 3 4 (共4页)