diff dmd/expression/And.d @ 0:10317f0c89a5

Initial commit
author korDen
date Sat, 24 Oct 2009 08:42:06 +0400
parents
children e28b18c23469
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dmd/expression/And.d	Sat Oct 24 08:42:06 2009 +0400
@@ -0,0 +1,10 @@
+module dmd.expression.And;
+
+import dmd.Expression;
+import dmd.Type;
+import dmd.IntegerExp;
+
+Expression And(Type type, Expression e1, Expression e2)
+{
+    return new IntegerExp(e1.loc, e1.toInteger() & e2.toInteger(), type);
+}
\ No newline at end of file