Now I can code the behavior for the pop method, which ensures that if the stack is logically empty, an exception will be thrown.
现在我可以为pop方法编写行为,即确保当栈在逻辑上为空时,抛出一个异常。
In this case, I introduced an error to the code generation handling a collection, adding an extra item to the stack in the body of the item unmarshalling loop.
在这个示例中,我在处理集合的代码生成中引入了一个错误,在项目反编排循环的循环体中,向堆栈添加了一个额外项目。
Given that I'm probably going to be using a Stack instance throughout my behavior class, I might as well push (no pun intended) that logic into a fixture, as I've done in Listing 7.
由于我可能在整个行为类中使用一个Stack实例,我可能也会将那种逻辑推入(这里并非有意使用双关语)到一个fixture中,正如清单7中那样。
I went off to the stack and found some really good material for my part, but when I got back to our table, they were just goofing off and talking.
于是我动身走去那堆书那里,并找到了很多对我这部分来说很有用的材料。但是当我回到我们的桌子旁时,他们只是在那儿聊天、消磨时间。
I have a stack of emails in my inbox.
我的收件箱里有很多电邮。
If I doubled the area of the sheet, the stack would only compress by half as much.
如果将纸的面积扩大到原来的两倍,纸堆的收缩总量便缩小到原来的一半。
Typically, when analyzing startup performance, I gather a list of all the activated bundles and stack traces for why they were activated.
一般在分析启动性能时,我会收集所有激活包的列表以及对应于它们为何激活的堆栈跟踪信息。
For the latter topic, I have chosen to implement a concurrent stack and highlight some of the issues in designing such a data structure.
对于后一个主题,我选择实现一个并发堆栈并解释设计这种数据结构涉及的一些问题。
Pushing aside the stack of paper, I got up.
我把那叠文件往旁边推了推,站起身来。
When my SCA application encounters a problem, can someone explain the various classes I see on the runtime call stack?
当我的SCA应用程序遇到问题时,如何解释运行时调用堆栈上出现的各种类?
As I mentioned earlier, LR_OFFSET is the offset from the end of the stack to the link register save area.
正如我先前提到的,LR_OFFSET是堆栈末端到链接寄存器保存区的偏移量。
Instead of filing two papers I should wait until I have time to file the whole stack of papers.
我要整理这两份文件,但是我必须得等到有时间把这一堆文件都整理后,才能归档这两份。
As the photo here shows, the pile was also fairly unattractive, so after taking this picture I rewarded myself for completing the copy-edited version by tossing the entire stack.
正如上边图片现实,这一堆看上去十分没魅力,所以,在拍完后,为了庆祝完成了书稿版,将这一堆都丢了。
I look forward to playing with applications that are capable of using the full XML media stack.
我预计会出现可以完全使用XML媒体堆栈的应用程序。
In this article, I decoupled the topic away from the implementation, choosing the smallest software stack available to investigate the characteristics of DI.
在本文中,我把这个主题与实现分离,选择可以使用的最小软件栈来研究DI的特征。
I just listened to what she was saying and then built the stack accordingly, by thinking in terms of behavior first.
通过首先考虑行为,我只需倾听她的需求,然后相应地构建栈。
If I take one of the rocks out or if I start moving the whole stack the balance will be lost.
如果我拿走其中一个岩石,或是如果我开始移动整个一堆,平衡就会失去。
So, I think SOA 2.0 is an expansion of SOA across the end-to-end solution stack.
因此,我认为SOA 2.0是跨端到端的解决方案栈的SOA的扩展。
As you can see, I've coded the minimum amount of a stack so I can start fleshing out the required behavior first.
可以看到,我编写了一个最简单的栈,以便首先添加必需的行为。
Most of these should be easy to understand if you think in terms of the JVM as a stack-based processor, so I won't go into details here.
如果将JVM 想象为基于堆栈的处理器,则其中大多数是容易理解的,因此我在这里就不再详细说明了。
Note that until now I have made no mention of the origins of the thread whose call stack was depicted in Figure 1.
注意,直到现在我还没有提到图 1 中描述的调用堆栈的线程起源。
I love bringing a big stack of magazines with me on vacation and getting to browse through them with my feet up on the couch.
我喜欢在假期中带一大堆杂志回来,躺在沙发上开始浏览。
First, that's actually not applicable here because in this story there's only one function that I wrote main of one stack frame then another then another and then those being popped off.
首先,那在这里是不适用的,因为在这里我只写了一个函数,函数,这里没有,at,least,called,main,so,there’s,no,notion,一个叠一个的堆栈概念,堆栈释放的概念。
Instead of using a custom client and TCP stack, I used the standard Linux TCP stack and the wget command-line HTTP client.
没有使用定制的客户机和tcp栈,而是使用了标准的Linux TCP协议栈和wget命令行http客户机。
If the method is not static, I generate code to load the this object reference to the stack, and also set the method call type to virtual (rather than static).
如果方法不是静态的,那么就生成将this对象引用装载到堆栈中的代码,同时设置方法调用类型为virtual(而不是static)。
I landed a stack of financial magazines (did you know the world's richest man doesn't use a computer?) and then relisted them.
我得到一大摞财经杂志(难道你不知道世界上最富有的人不使用电脑吗?),后来又在重新登记送出杂志。
They held us in an empty room where the nurses and I sat together on a stack of mattresses.
他们将我们关在一间空屋子里,我和护士们坐着垫子挤在一起。
But I have found that it is hard to do. Mostly because of fear of the craft and how I sometimes don't think that I can "stack up" to other, better writers.
但是我发现这并不是一件易事,主要是因为我对这一行的恐惧,而且有时我不知为何会觉得自己无法与比自己好的作家相比较。
We know that the layering of the PC era led to huge innovation at each layer in the stack and I expect the same to continue to emerge on the Internet.
我们知道个人计算机时代的分层最终导致了各个层面的巨大变革,所以我期待同样的变革会继续出现在互联网上。
Bromo is a grey stack but less menacing than I had expected and going up the powdery lava runs ranks as one of the best rides of my life.
婆罗摩火山是一座灰色的山,但是没有我想象的那么咄咄逼人。在火山灰上向上骑的这一段路是我一生中骑得最好的了。
应用推荐