Re: need your help for Gtk3 and Moose

2014-05-13 Thread Shlomi Fish
in. I saw your other E-mail about getting the problem below fixed. Regards, Shlomi Fish -- ----- Shlomi Fish http://www.shlomifish.org/ http://www.shlomifish.org/humour/ways_to_do_it.html Absolutely. Also: a German do

Re: need your help for Gtk3 and Moose

2014-05-12 Thread Shlomi Fish
think they were necessary. The main change was adding sanity checks (Which are also not necessary) and converting an attribute to "lazy => 1" so it will be initialised in the right time. Hope it works fine for you. Regards, Shlomi Fish -- ------

Re: MooX-late-0.009 Breaks XML-Grammar-Fiction-0.12.4

2013-04-25 Thread Shlomi Fish
, Shlomi Fish On Tue, 23 Apr 2013 15:48:36 +0300 Shlomi Fish wrote: > > > Begin forwarded message: > > Date: Tue, 23 Apr 2013 09:50:01 +0100 > From: "Toby Inkster" > To: "Shlomi Fish" > Subject: Re: MooX-late-0.009 Breaks XML-Grammar-Fiction-0.

Fw: MooX-late-0.009 Breaks XML-Grammar-Fiction-0.12.4

2013-04-23 Thread Shlomi Fish
Begin forwarded message: Date: Tue, 23 Apr 2013 09:50:01 +0100 From: "Toby Inkster" To: "Shlomi Fish" Subject: Re: MooX-late-0.009 Breaks XML-Grammar-Fiction-0.12.4 > What should be done? Can MooX::late be fixed? Thanks. In the latest release I simplified much

MooX-late-0.009 Breaks XML-Grammar-Fiction-0.12.4

2013-04-22 Thread Shlomi Fish
as a result I'm getting tons of error reports. What should be done? Can MooX::late be fixed? I'm including below the error report from my local machine. If I use MooX-late-0.007 all tests are fine. Regards, Shlomi Fish [DZ] building distribution under .build/m4dAnNX4S0 for i

MooX::late Problem: Undefined slot

2013-02-20 Thread Shlomi Fish
It should work as it is. Any insight would be appreciated. I spent several hours yesterday being frustrated at it not working. Regards, Shlomi Fish [START CODE] package FooRNG; use strict; use warnings; our $VERSION = '0.11.1'; use MooX 'late'; use XML::Gr

Re: Replacing "use base" with "use parent"

2012-10-15 Thread Shlomi Fish
eople think « if Moose uses > > > it, it's fine to use it in my code », and 'parent' keeps being > > > unnoticed. So > > keeping > > > 'use base' in Moose helps to keep 'base' alive. > > > > > > Finally, if using

Re: Singleton per connection

2012-04-12 Thread Shlomi Fish
mally like to do to implement singletons is create an "environment" object that contains all the common data, and keep a reference to it for every class in the system. This way, one can have more than one environment in the program. Regards, Shlomi Fish -- ---

Re: using moose?

2011-06-29 Thread Shlomi Fish
, it does. http://www.catalystframework.org/ uses Moose, as do many other modules on CPAN: http://deps.cpantesters.org/depended-on-by.pl?module=Moose Regards, Shlomi Fish > Thanks. > > Une messagerie gratuite, garantie à vie et des services en plus, ça vous > tente ? Je crée ma

Re: Problem using Traits - would really really appreciate a quick response

2010-09-22 Thread Shlomi Fish
ent_values', handles => { 'get_argument_value' => 'get', 'has_argument_value' => 'exists' }, lazy => 1, ); }}} Causes the output to be "A" and no exception thrown. The problem is that the "

Re: Bug?

2010-06-26 Thread Shlomi Fish
t; The line 25 is: > > $xml .= inner(); > > (from the augment modifier) > > Am I missing something from the sample script? > Well, I think Report::as_xml() is trying to call its inner() function that returns undef because it's undefined. Perhaps you want to de

Re: inner() not an instance method

2010-06-17 Thread Shlomi Fish
smart and just does > things right. Also, since Moose depends on it, so it is already > installed :) I've yet to start drinking the Try::Tiny kool-aid, and am now using Exception::Class along with some plain-Perl eval { ... } and if/else/elsif logic. It works for me, but may not be ide

Re: Best way of implementing "Walkmeth" in Moose

2010-04-30 Thread Shlomi Fish
On Wednesday 28 Apr 2010 08:04:31 Daniel Pittman wrote: > Shlomi Fish writes: > > On Tuesday 27 Apr 2010 15:51:07 Stevan Little wrote: > >> On Apr 27, 2010, at 3:36 AM, Shlomi Fish wrote: > >> > After merging XML-Grammar-Fiction and XML-Grammar-Screenplay, I h

Re: Design Question: Subclass-specific Constants

2010-04-29 Thread Shlomi Fish
On Tuesday 27 Apr 2010 19:17:25 Dave Rolsky wrote: > On Tue, 27 Apr 2010, Shlomi Fish wrote: > > Wouldn't it mean that perl will call the _build_paragraph_name of the > > sub- class upon every instantiation of an object? I could be prematurely > > micro- optimising i

Re: Design Question: Subclass-specific Constants

2010-04-27 Thread Shlomi Fish
On Tuesday 27 Apr 2010 18:54:06 Dave Rolsky wrote: > On Tue, 27 Apr 2010, Shlomi Fish wrote: > > [code] > > has '_get_paragraph_tag_name' => (is => 'ro', default => "para"); > > [/code] > > > > And maybe specialise it furthe

Design Question: Subclass-specific Constants

2010-04-27 Thread Shlomi Fish
27;», but it seems like it would be much more verbose. Just wondering if there's a Moose best practice ("MBP", heh.) here. Regards, Shlomi Fish -- - Shlomi Fish http://www.shlomifish.org/ Funny Anti-

Re: Best way of implementing "Walkmeth" in Moose

2010-04-27 Thread Shlomi Fish
On Tuesday 27 Apr 2010 15:51:07 Stevan Little wrote: > On Apr 27, 2010, at 3:36 AM, Shlomi Fish wrote: > > Hi all! > > > > After merging XML-Grammar-Fiction and XML-Grammar-Screenplay, I have > > accumulated several questions about Moose, so I'd post each one in

XML-Grammar-Fiction's Tests Succeed Normally and Die under ./Build testcover

2010-04-27 Thread Shlomi Fish
Bad plan. You planned 26 tests but ran 0. t/screenplay/qnd-parser-unit.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: Bad plan. You planned 3 tests but ran 0. Files=18, Tests=117, 69 wallclock secs ( 0.21 usr 0.07 sys + 54.83 cusr 2.35 csys = 57.46

Best way of implementing "Walkmeth" in Moose

2010-04-27 Thread Shlomi Fish
return \...@results; } [/code] My question is: is there a better way to do it using Moose? (Or one of the MooseX modules?) Instead, should I implement my own private logic or create a new MooseX module? Regards, Shlomi Fish -- --------

Re: Proposal: "Moose, the *modern* [not "post-modern"] Perl 5 Object System"

2010-04-23 Thread Shlomi Fish
bad in different circles, than those that I encountered. > That all said, if the word "postmodern" has negative or different > connotations within a culture (in this case Israeli) then any > translated materials should take that into account and perhaps look > for a better wo

Re: Proposal: "Moose, the *modern* [not "post-modern"] Perl 5 Object System"

2010-04-23 Thread Shlomi Fish
). I can attest that tzafrir_laptop ( see: http://tzafrir.org.il/ ) was not being paranoid or nitpicky and is a trustworthy person, despite some of his faults. Regards, Shlomi Fish -- - Shlomi Fish http://ww

Re: Moose::Meta::Attribute::Native and compound data structures

2010-04-20 Thread Shlomi Fish
ps we can extend handles to be something like: [code] handles => { '_get_get' => ['get1', 'get2'], } [/code] (Syntax may be made better.) Of course now the million dollar question is whether it should be $self- >field->get1->get2 (Law of Demete

Re: Proposal: "Moose, the *modern* [not "post-modern"] Perl 5 Object System"

2010-04-11 Thread Shlomi Fish
On Sunday 11 Apr 2010 18:45:33 Chris Prather wrote: > On Sun, Apr 11, 2010 at 11:27 AM, Shlomi Fish wrote: > > Hi all, > > > > I hope I'm not going to start a flamewar or appear as too domineering > > (which I know has been an ongoing problem with me) but I'd

Proposal: "Moose, the *modern* [not "post-modern"] Perl 5 Object System"

2010-04-11 Thread Shlomi Fish
t it may either make people wonder what the hell we mean, or may even give the wrong impression, so I suggest we drop it. I don't mind working on the patch to the site and to Moose.pm to change all "post-modern"'s to "modern"'s, but I'd like to know it would

Re: New Moose Website

2010-04-05 Thread Shlomi Fish
eased module, which is Resource::Pack and that can be found on my > github (http://github.com/stevan/Resource-Pack). Peace, Love and Meese, Shlomi Fish -- - Shlomi Fish http://www.shlomifish.org/ First stop for Perl

Re: Creating attributes that are foreign objects

2009-12-22 Thread Shlomi Fish
On Tuesday 22 Dec 2009 15:10:06 Dermot wrote: > 2009/12/22 Shlomi Fish : > > Hi Dermot! > > Hi Shlomi, > Hi. > >> package Media; > >> > >> use metaclass ( > >> metaclass => 'Moose::Meta::Class', > >> erro

Re: Creating attributes that are foreign objects

2009-12-22 Thread Shlomi Fish
= shift; > my $config = AppConfig->new( { > CREATE => 0, > }); > $config->define('media_root',{ ARGCOUNT=> 'ARGCOUNT_ONE' }); > my $config_file = "$Bin/../media.conf";

Test-Run 0.0120 - Now With Moosey Goodness

2009-08-06 Thread Shlomi Fish
ur of the more modern MRO::Compat (which defaults to mro.pm in perl-5.10.x and above). YAML.pm was replaced with the faster and better YAML::XS . Finally, the META.yml was enhanced with resources and keywords. Have fun! Shlomi

Re: Exceptions for Moose

2009-07-25 Thread Shlomi Fish
edo.com/MooseX-Exceptions/lib/MooseX/Exceptions.pm > POD: http://www.friedo.com/MooseX-Exceptions/lib/MooseX/Exceptions.html > > There aren't any real unit tests or anything yet. I hope to have > something CPAN-worthy in a week or two, depending on how much time I > have to wor

Class::MOP Tests Fail Under -d

2008-11-26 Thread Shlomi Fish
se read it and respond to it here. Regards, Shlomi Fish ----- Shlomi Fish http://www.shlomifish.org/ http://www.shlomifish.org/humour/ways_to_do_it.html Shlomi, so what are you working on? Working on a new wiki about un

Re: Moosifying Test-Run Part 2: Probably Not

2008-06-02 Thread Shlomi Fish
Hi Stevan! Thanks for your informative response. See below for mine. On Sun, Jun 1, 2008 at 5:19 PM, Stevan Little <[EMAIL PROTECTED]> wrote: > Shlomi, > > On Jun 1, 2008, at 8:57 AM, Shlomi Fish wrote: >> >> I said that I'd like to convert Test-Run to Moose. Well

Moosifying Test-Run Part 2: Probably Not

2008-06-01 Thread Shlomi Fish
Hi all! [ I'm writing this email from a different address (with a typo of Schrödinger's name) because I've encountered the following email problem: http://use.perl.org/~Shlomi+Fish/journal/36545 . Sorry for the inconvenience. ] I previously wrote the following email: http://ww

Re: Shlomif's Tenth Law of Perl OOP and Test-Run

2008-05-08 Thread Shlomi Fish
Hi Stevan! On Friday 09 May 2008, Stevan Little wrote: > Shlomi, > > On May 8, 2008, at 3:41 PM, Shlomi Fish wrote: > > Hi all! > > > > Shlomif's Tenth Law of Perl OOP: "Every sufficiently complex > > Class::Accessor > > program contains contains

Shlomif's Tenth Law of Perl OOP and Test-Run

2008-05-08 Thread Shlomi Fish
ese are classes whose constructors (the ->new() subroutines) can only be passed proper pre-defined fields. It's very hacky and ad-hoc at the moment, so I'm open for better Moose-based solutions. # http://xrl.us/bkba3 - Test::Run::Base::Plugger # http://xrl.us/bkba5 - Test::Run::Base: