Hi Irakli,

Just to clarify—are you hoping to use different modifiers or  
different noun types depending on the preference?

If you are hoping to use different modifiers, there is actually a  
broader proposal available now which I hope to implement soon: 
http://mitcho.com/blog/projects/writing-commands-with-semantic-roles/

If you're hoping to use different noun types, I would recommend what  
Blair suggested.

I hope that helps answer your question... if you have a concrete  
example of the command you're hoping to build and what situations  
you're having trouble with, we may be able to offer more support.

mitcho

> Well yeah that's what I did but actually I don't like this way much.
>
> I mean I have Class Language and I'm defining modifiers like
>
> modifiers : {
>     from : new Language('from'),
>     to : new Language('to')
> }
>
> Anyway this once again proves my original idea that modifiers should  
> have modifiers as well
>
> Irakli Gozalishvili
> Web: http://rfobic.wordpress.com/
> Address: Taksteeg 3 - 4, 1012PB Amsterdam, Netherlands
>
>
> On Thu, Feb 26, 2009 at 11:04 PM, Blair McBride  
> <[email protected]> wrote:
>
> Unfortunately, there's no way of doing it exactly like this at the
> moment. Although its an interesting idea.
>
> What you can do, however, is to use different noun types, each using
> some base functionality. For example:
>
>
> var mynoun_base = {
>   suggest: function() { ... }
> }
>
> var mynoun_type_1 = {
>   suggest: mynoun_base.suggest,
>   default: function() { ... }
> }
>
> var mynoun_type_2 = {
>   suggest: mynoun_base.suggest,
>   default: function() { ... }
> }
>
>
>
> Hope that helps.
>
> - Blair
>
>
>
>
> On 27/02/2009 2:26 AM, Irakli Gozalishvili wrote:
> > Hi,
> >
> >
> > I have a modifiers "from", "to" typeof Language what I'm trying to
> > figure out in the suggest / default method of the Language which
> > modifier is that "from"?? "to"?? cause based on that my default  
> can be
> > different. Is there any way to do that ?
> >
> >
> > Irakli Gozalishvili
> > Web: http://rfobic.wordpress.com/
> > Address: Taksteeg 3 - 4, 1012PB Amsterdam, Netherlands
> >
> > >
>
>
>
>
> >

--
mitcho (Michael 芳貴 Erlewine)
[email protected]
http://mitcho.com/
linguist, coder, teacher


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"ubiquity-firefox" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/ubiquity-firefox?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to