Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Ml > Re: Using infix...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 914 of 968
Post > Topic >>

Re: Using infix from structures

by Joe Wells <jbw@[EMAIL PROTECTED] > Aug 14, 2007 at 03:44 PM

kennheinrich@[EMAIL PROTECTED]
 writes:

> I have a structure which defines a number of syntactic sugar
> functions, which are intended to be used as infix operators.  As far
> as I can tell, the fixity of the names as declared inside the
> structure does not get ex****ted when I open it in some other struct.
> So everywhere I use the structure, I wind up following the "open" with
> a long series of infix statements.  Is there a trick or recommended
> way of avoid all those redundant lines of infix declarations?

See the section “Infix vs. Modules” in “A Critique of Standard ML”
by
Andrew Appel.  It says SML/NJ sup****ts infix spec in signatures, which
allows them to be obtained via “open”.  (I've never tried using this.)
I don't think the official SML definition sup****ts this.

-- 
Joe
 




 1 Posts in Topic:
Re: Using infix from structures
Joe Wells <jbw@[EMAIL   2007-08-14 15:44:29 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 26 5:29:05 CDT 2008.