search for: catch

Displaying 20 results from an estimated 9067 matches for "catch".

Did you mean: patch
2006 Jul 07
7
Sequencing control with edit method in CRUD examples
I have been playing with the cookbook type of tutorials building a fish tournament scoring piece and am having a bit of a problem with a DB field called "points" in my "catch" table that is not input by the user but is calulated based on a "size" field that is input by the user. I have the following in my catch_controller.db def new @catch = Catch.new @fish = Fish.find_all @bait = Bait.find_all end def create @catch = Catch.new(@params[''c...
2015 Jan 27
2
[LLVMdev] RFC: Native Windows C++ exception handling
...They are just there to facilitate the table generation, and in the __CxxFrameHandler3 case they don’t mean quite the same thing that they mean elsewhere. (Maybe that’s an argument for using a different construct.) There’s also a good chance that I’m being inconsistent in how I chose to represent catch clauses versus cleanup clauses. In the case you refer to, if an exception thrown by do_inner_thing() is caught by the int exception handler at lpad3, then we only want ~Iinner() to be called. If it is caught instead by the float handler, that will result in a different state transition and the ca...
2011 Sep 24
2
[LLVMdev] How to code catch-all in the new exception handling scheme?
I'm looking at the docs, and while it refers to a "catch-all" clause, it doesn't describe how to construct one. In the old scheme, a selector value of 0 was used. What's the corresponding technique for the new scheme? Do I need to update my personality function to handle catch-alls (it wasn't needed in the previous scheme)? -- -- Talin...
2011 Sep 25
0
[LLVMdev] How to code catch-all in the new exception handling scheme?
Hi Talin, > I'm looking at the docs, and while it refers to a "catch-all" clause, hopefully Bill will get rid of the first reference to "catch-all" since that section is inaccurate. it doesn't > describe how to construct one. There is in general no such thing as a catch-all: it depends on the personality function (i.e. the language), and,...
2010 Dec 01
8
[LLVMdev] Alternative exception handling proposal
...ative proposal to Bill's. It is closer to what we already have (which can be seen as a good or a bad thing!), and is also closer to what gcc does. It is more incremental than Bill's and introduces fewer new concepts. Executive summary ----------------- Remove the personality and list of catches out of eh.selector and stick them directly on invoke instructions. The invoke instruction ---------------------- The invoke instruction is modified by adding extra catch info to it: <result> = invoke <function>(<function args>) to label <normal label> unwind lab...
2011 Aug 02
2
[LLVMdev] RFC: Exception Handling Rewrite
Hi Chris, >>> Is it intended that "cleanup ty_1, ty_2" potentially be different to >>> "cleanup ty_1 cleanup ty_2"? Perhaps this is useful for funky personality >>> functions. >>> >> Yeah. One can basically interleave the catches and filters. But having two catch or two filter clauses in a row should be semantically the same as the clauses being merged into one. (E.g., your examples would be equivalent.) > > Let me rephrase the question then. Why not make the grammar be either: > >>>> <clause&gt...
2010 Dec 01
0
[LLVMdev] Alternative exception handling proposal
On Dec 1, 2010, at 1:37 PM, Duncan Sands wrote: > Executive summary > ----------------- > > Remove the personality and list of catches out of eh.selector and stick them > directly on invoke instructions. > > The invoke instruction > ---------------------- > > The invoke instruction is modified by adding extra catch info to it: > > <result> = invoke <function>(<function args>) >...
2019 Sep 15
2
REprintf could be caught by tryCatch(message)
...funs to corresponding R functions is as follows. error -> stop warning -> warning REprintf -> message Rprintf -> cat Rprint/cat is of course not an exception, I listed it just for completeness. The inconsistency I would like to report is about REprintf. It cannot be caught by tryCatch(message). Warnings are errors are being caught as expected. Is there any chance to "fix"/"improve" REprintf so tryCatch(message) can catch it? So in the example below catch(Cmessage()) would behave consistently to R's catch(message("a"))? Regards, Jan Gorecki ca...
2011 Aug 02
0
[LLVMdev] RFC: Exception Handling Rewrite
...te: >>>> Is it intended that "cleanup ty_1, ty_2" potentially be different to >>>> "cleanup ty_1 cleanup ty_2"? Perhaps this is useful for funky personality >>>> functions. >>>> >>> Yeah. One can basically interleave the catches and filters. But having two catch or two filter clauses in a row should be semantically the same as the clauses being merged into one. (E.g., your examples would be equivalent.) >> >> Let me rephrase the question then. Why not make the grammar be either: >> >>>>&g...
2015 Jan 26
2
[LLVMdev] RFC: Native Windows C++ exception handling
...h as possible. I'll discuss this below in more detail, but the summary is that I'm going to propose an extension to the syntax of the landing pad instruction to enable landing pad clauses to be outlined as external functions, and I'd like to introduce two new intrsinsics, llvm.eh.begin.catch and llvm.eh.end.catch, to replace calls to the libc++abi __cxa_begin_catch and __cxa_end_catch functions. Currently, LLVM supports 64-bit Windows exception handling for MinGW targets using a custom personality function and the libc++abi library. There are also LLVM clients, such as ldc, that pro...
2008 Dec 07
2
subsetting large data frames.
Hi all, I have a question regarding subsetting of large data frames. I have two data frames ?catches? and ?tows? and they both have the same 30 variables (columns). I would like to select rows in the data frame ?tows? where all 5 specific variables are NOT matched in ?catches. That is to say, the combination of these 5 variables is unique. One or more of the variables could be the same but the c...
2010 Dec 01
4
[LLVMdev] RFC: Exception Handling Proposal Revised
On Dec 1, 2010, at 1:12 AM, Renato Golin wrote: > On 1 December 2010 07:04, Bill Wendling <wendling at apple.com> wrote: >> The unwind edge from an invoke instruction jumps to a landing pad. That landing pad contains code which performs optional cleanups, and then determines which catch handler to call (if any). If no catch handlers are applicable, the exception resumes propagation either to the next enclosing region or out of the function. > > Hi Bill, > > Looking good already! ;) > Thanks! >> ch.int: > > shouldn't the catch handlers have &quo...
2014 Nov 24
1
[LLVMdev] RFC: How to represent SEH (__try / __except) in LLVM IR
...mething by you to make sure we're on the same page. Starting from a C++ function that looks like this: void do_some_thing(int &i) { Outer outer; try { Middle middle; if (i == 1) { do_thing_one(); } else { Inner inner; do_thing_two(); } } catch (int en) { i = -1; } } I'll have IR that looks more or less like this: ; Function Attrs: uwtable define void @_Z13do_some_thingRi(i32* dereferenceable(4) %i) #0 { entry: %i.addr = alloca i32*, align 8 %outer = alloca %class.Outer, align 1 %middle = alloca %class.Middle, align 1...
2010 Dec 01
0
[LLVMdev] RFC: Exception Handling Proposal Revised
...cally, I want the basic block that's labeled a "landing pad" to be jumped to by only a dispatch resume or unwind edge of invoke. We could do this with the c.dtor and ch.int here, but it would mean inserting useless "cleanup dispatches" that only resume to the block (see onto.catch.handlers for an example). Hi Bill, All cleanups come from invoke's unwinds (from foo's call) and all catch handlers come from the main catch dispatch, so for that rule, they all should have it. Or that's what I understood... ;) Also, now I noticed a few things in your IR, could be ju...
2012 Jan 10
3
[LLVMdev] landingpad instruction documentation is vague
I am new to the landingpad (which is relatively new too). Documentation http://llvm.org/docs/LangRef.html#i_landingpad leaves some questions open: 1. What happens when actual exception type isn't listed in catch or filter clauses? Does it still return the corresponding structure like if it was listed? Or behavior is undefined? 2. What is 'somety'? Shouldn't it maybe say "result_type" instead? In the instructions printed by clang++, somety is { i8*, i32 }. 3. What are the allowed va...
2011 Jul 12
5
[LLVMdev] Catching exceptions passed through a JIT ExecutionEngine
Hi All, I'm trying to catch an exception that is "passed through" an LLVM ExecutionEngine but I am unable to do so. Specifically, in C++ code, inside a try/catch block, I call a JITted function, which in turn calls back into my code. Everything works fine unless an exception is thrown; I would except the outermost...
2011 Sep 27
3
[LLVMdev] How to code catch-all in the new exception handling scheme?
On Sep 25, 2011, at 1:02 AM, Duncan Sands wrote: > Hi Talin, > >> I'm looking at the docs, and while it refers to a "catch-all" clause, > > hopefully Bill will get rid of the first reference to "catch-all" since > that section is inaccurate. > I *think* this is now correct. Please check. :) > it doesn't >> describe how to construct one. > > There is in general no such t...
2019 Sep 15
2
[External] REprintf could be caught by tryCatch(message)
...is made somewhere in R documentation please report it a a bug. > > > Rprintf -> cat > > > > Rprint/cat is of course not an exception, I listed it just for completeness. > > The inconsistency I would like to report is about REprintf. It cannot > > be caught by tryCatch(message). Warnings are errors are being caught > > as expected. > > > > Is there any chance to "fix"/"improve" REprintf so tryCatch(message) > > can catch it? > > No: this is behaving as intended. > > Best, > > luke > > > So in...
2008 Mar 29
2
[LLVMdev] unwinds to in the CFG
Gordon Henriksen wrote: > What blocks would a phi node in %catch require for a case like this? > > define i8 @f(i1 %b) { > > entry: > > b label %try > > try: unwinds to %catch > > b i1 %b, label %then, label %else > > then: unwinds to %catch > > ret void > > else: unwin...
2010 Dec 02
3
[LLVMdev] Alternative exception handling proposal
...ation in > one place which needs to be shared in two different, but possibly disjoint, > places: the type, filters, and personality information. In order to generate the > EH tables, you need to know this information at the throw site and at the place > which makes the decision of which catch handler to invoke. There is no guarantee > in your proposal that the invoke can be associated with the proper eh.selector > call. And because of (C++) cleanups and inlining, it's the rule not the exception. I disagree that this information is needed anywhere except the invoke. If it was...