<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Using Groovy Categories to override operators</title>
	<atom:link href="http://eriwen.com/groovy/groovy-categories/feed/" rel="self" type="application/rss+xml" />
	<link>http://eriwen.com/groovy/groovy-categories/</link>
	<description>Programming productively with open-source tools</description>
	<lastBuildDate>Fri, 11 May 2012 19:13:05 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: Eric Wendelin</title>
		<link>http://eriwen.com/groovy/groovy-categories/#comment-3386</link>
		<dc:creator>Eric Wendelin</dc:creator>
		<pubDate>Tue, 24 Aug 2010 16:08:08 +0000</pubDate>
		<guid isPermaLink="false">http://eriwen.com/?p=793#comment-3386</guid>
		<description>I don&#039;t think this is possible without a wildly complex implementation. 

Perhaps you can add a method to Constraint that accepts a closure containing the constraint you want to enforce.</description>
		<content:encoded><![CDATA[<p>I don&#8217;t think this is possible without a wildly complex implementation. </p>
<p>Perhaps you can add a method to Constraint that accepts a closure containing the constraint you want to enforce.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jacob</title>
		<link>http://eriwen.com/groovy/groovy-categories/#comment-3385</link>
		<dc:creator>Jacob</dc:creator>
		<pubDate>Tue, 24 Aug 2010 15:27:32 +0000</pubDate>
		<guid isPermaLink="false">http://eriwen.com/?p=793#comment-3385</guid>
		<description>Eric,
Could you advise on this question? I want to add a Groovy DSL on top of a Java package that has classes Var and Constraint. I want a user to be able to write something like

Constraint constraint = var1 &lt; var2

Is it possible to override Groovy comparison operators like â€œ&lt;â€ that should return an instance of my class Constraint instead of int? If yes I would appreciate a hint.

Jacob</description>
		<content:encoded><![CDATA[<p>Eric,<br />
Could you advise on this question? I want to add a Groovy DSL on top of a Java package that has classes Var and Constraint. I want a user to be able to write something like</p>
<p>Constraint constraint = var1 &lt; var2</p>
<p>Is it possible to override Groovy comparison operators like â€œ&lt;â€ that should return an instance of my class Constraint instead of int? If yes I would appreciate a hint.</p>
<p>Jacob</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Valentin Jacquemin</title>
		<link>http://eriwen.com/groovy/groovy-categories/#comment-2588</link>
		<dc:creator>Valentin Jacquemin</dc:creator>
		<pubDate>Fri, 15 May 2009 06:48:22 +0000</pubDate>
		<guid isPermaLink="false">http://eriwen.com/?p=793#comment-2588</guid>
		<description>Awesome! I really have to dig in Groovy urgently... But I need more time in one day!</description>
		<content:encoded><![CDATA[<p>Awesome! I really have to dig in Groovy urgently&#8230; But I need more time in one day!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

