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 > Dylan > DRM on slot acc...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 212 of 285
Post > Topic >>

DRM on slot access and unary operators

by Dustin Voss <d-j-v@[EMAIL PROTECTED] > Dec 21, 2006 at 02:08 PM

On page 36, the DRM says
  
  When a function call using slot reference syntax appears as an
  operand, it has greater precedence than any of the binary operators.

This might lead one to think that the slot reference syntax therefore 
has *lower* precedence than the unary operators, i.e. that

  ~choose(...).empty?

means
  
  empty?(~choose(...))

instead of what it actually means, which is

  ~(empty?(choose(...)))

The grammar for expressions makes it clear, but the page 36 could 
probably be rephrased as

  When a function call using slot reference syntax appears in an
  expression, it has greater precedence than any of the operators.

--
Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
      ------->>>>>>http://www.NewsDemon.com<<<<<<------
Unlimited Access, Anonymous Accounts, Uncensored Broadband Access
 




 1 Posts in Topic:
DRM on slot access and unary operators
Dustin Voss <d-j-v@[EM  2006-12-21 14:08:49 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan12V112 Thu Jul 24 16:44:37 CDT 2008.