Re: Dokgen failing.

  • From: Ola Bini <ola.bini@gmail.com>
  • To: Martin Elwin <martin@elwin.com>
  • Cc: dev@ioke.kenai.com
  • Subject: Re: Dokgen failing.
  • Date: Fri, 09 Jan 2009 11:45:28 +0100
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=BaYhw42dLxqyNKaOqhJ9SQ+XMSwobFt84ZMTxN9QmamvfSh5TMgXdfOlCQhqYaJFDQ 0URTDfI/7I1Xs1fK7ZWVzGVDyg5HQCPwDjWKkGb+v8k3hJUb3l7oTVZ6sU0Ct1PtjLFx NjDYdUmgWqUToLIdJKRUTazxEbdr5ytNjVq+Q=

Martin Elwin wrote:
On Fri, Jan 9, 2009 at 7:55 AM, Ola Bini <ola.bini@gmail.com> wrote:
Thanks, I knew dokgen was currently bitrotted, but I haven't looked at it
yet. I will investigate based on your findings. Thanks.

Saw the fix - thanks!

By the way, you now have code:

((cell(:val) kind?("DefaultMethod")) ||
(cell(:val) kind?("LexicalBlock")) ||
(cell(:val) kind?("DefaultMacro")) ||
(cell(:val) kind?("LexicalMacro")) ||
(cell(:val) kind?("DefaultSyntax"))

Is there any way currently of doing something in the spirit of:

DefaultBehavior FlowControl in = macro("executes the arguments with
the receiver as context and ground, and then returns the result of the
last argument.

call arguments map(evaluateOn(cell("@"))) last)

which could give:

cell(:val) in {
kind?("DefaultMethod") ||
kind?("LexicalBlock") ||
kind?("DefaultMacro") ||
kind?("LexicalMacro") ||
kind?("DefaultSyntax")
}

Well, I would recommend doing this (which already works):

case(cell(:val) kind,
 or("DefaultMethod", "LexicalBlock",
     "DefaultMacro", "LexicalMacro", "DefaultSyntax"),
   ;; do something here)

of course, what you want can almost be done with "do", except that "do" doesn't return the last value.

Cheers

--
Ola Bini (http://olabini.com) JRuby Core Developer
Developer, ThoughtWorks Studios (http://studios.thoughtworks.com)
Practical JRuby on Rails (http://apress.com/book/view/9781590598818)

"Yields falsehood when quined" yields falsehood when quined.




Dokgen failing.

Martin Elwin 01/08/2009

Re: Dokgen failing.

Ola Bini 01/09/2009

Re: Dokgen failing.

Martin Elwin 01/09/2009

Re: Dokgen failing.

Ola Bini 01/09/2009

Re: Dokgen failing.

Martin Elwin 01/09/2009
  • Mysql
  • Glassfish
  • Jruby
  • Rails
  • Nblogo
Terms of Use; Privacy Policy;
© 2010, Oracle Corporation and/or its affiliates
(revision 20120127.ac94057)
 
 
Close
loading
Please Confirm
Close