search for: get_attr

Displaying 9 results from an estimated 9 matches for "get_attr".

2010 Feb 25
1
[PATCH] fix storage problem.
Since Ruby::Qmf moves, the .key() method does not work anymore. It forces to use a .get_attr('key') in order to get the good value. Signed-off-by: Loiseleur Michel <mloiseleur at linagora.com> --- src/task-omatic/taskomatic.rb | 15 +++++++-------- 1 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/task-omatic/taskomatic.rb b/src/task-omatic/taskomatic.rb...
2004 Nov 19
2
accessing the attributes of a list inside lapply()
...sing lapply() function, but I would also like to able to get the list names or some attributes of l in the lapply(). For example if I use names() function in the call of lapply() I get: > lapply(l, names) $a NULL $b NULL $c NULL My question is if I can get something like: > lapply(l, get_attr) $a [1] a $b [1] b $c [1] c I can do this very easy with a for() loop but my list is quite big and I would like to get a decent running time. I don't need only the attributes of the list(I can obtain them by using attributes() or attr() function), but for my list the names of the elements...
2005 Apr 21
0
[LLVMdev] Using LLVM for a dynamically typed language
On Thursday 21 April 2005 18:28, Vyacheslav Akhmechet wrote: > Evan, > > The problem is that I do not know the type of a target function at > compile time. If you consider my code example, I don't know the type > of 'i' until runtime (in fact, I can't even know a possible range of > types 'i' may assume). But... in a dynamic language each variable must
2008 Jan 28
4
GridTableBase
...ello all, i''m using wxruby 1.9.4 with Grid and the model class: "GridTableBase" like in the code below. But the method set_table of the grid does''nt work. Can anyone help me? require ''wx'' include Wx class MyGridTableBase < GridTableBase def get_attr row, col, attr_kind ## end def get_number_rows 0 end def get_number_cols 0 end def get_col_label_value col return "empty" end def is_empty_cell row, col return false end def get_value row, col...
2005 Apr 21
5
[LLVMdev] Using LLVM for a dynamically typed language
Evan, The problem is that I do not know the type of a target function at compile time. If you consider my code example, I don't know the type of 'i' until runtime (in fact, I can't even know a possible range of types 'i' may assume). Thanks, - Slava. On 4/21/05, Evan Jones <ejones at uwaterloo.ca> wrote: > On Thu, 2005-21-04 at 09:31 -0400, Vyacheslav Akhmechet
2008 Jul 28
12
Segfault with GridCellChoiceEditor
I have a problem. In my application I have a few Grid objects in a Notebook. The Grid objects are populated via GridTableBase. Certain Grid cells need to have a choice interface (I''m artificially enforcing foreign key constraints). All this works to the point where you try to edit the value for that cell. The choice box renders (i.e. the drop down arrow appears) then the application
2010 Feb 24
3
Mouse wheel events in a grid cell editor?
I''m trying to do some advanced editing using Grids. I''ve created my own editors and updating view and model both works fine so far. Thanks to whoever made this possible. I like wxRuby more each day! Now I''d like to catch mousewheel events in order to increment/decrement a grid cell editor. I''ve tried installing a handler in begin_edit of my editor and removing
2006 Aug 02
13
wxruby2 alpha release goals
...IG output and headers to make RDoc-ish output. Does anyone have this somewhere? It would be great to supply some rudimentary RDoc with a package. D) I think we can do some things to make the API a bit more Rubyish without having to hack the interface files. Eg. a few lines that alias set_attr, get_attr and is_attr to more ruby-ish attr=(), attr() and attr?(). We can put in better plumbing later ;) E) This is one where we can use help. Suggest we release as source tarball and gems. I''m happy to bundle binaries into platform gems. OS X: Alex. Sean are you able to check on Mactel? Win32:...
2010 Feb 05
0
Wine release 1.1.38
...E}_TIMEOUT. Matteo Bruni (1): wpp: Assure if_stack is clean before returning. Michael Stefaniuc (17): kernel32: Use IS_INTRESOURCE instead of HIWORD to check a resource. comctl32: Use IS_INTRESOURCE instead of HIWORD to check a resource. hhctrl.ocx: Fix the mem handling in get_attr() (Smatch). comdlg32: Use IS_INTRESOURCE instead of HIWORD to check a resource. cryptnet: Don't use HIWORD() on a string pointer. crypt32: Avoid using HIWORD() on a string pointer. msi: Avoid using HIWORD() on string pointers. shlwapi: Use IS_INTRESOURCE not HIWORD...