[nem-bug] [Nemerle 0000553]: Preprocessor symbols accessible from macros API

feedback at nemerle.org feedback at nemerle.org
Mon Oct 24 19:49:15 CEST 2005


A NOTE has been added to this issue.
======================================================================
<http://nemerle.org/bugs/view.php?id=553> 
======================================================================
Reported By:                tokugawa
Assigned To:                nazgul
======================================================================
Project:                    Nemerle
Issue ID:                   553
Category:                   Language Feature
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     resolved
Resolution:                 fixed
Fixed in Version:           
======================================================================
Date Submitted:             10-24-2005 16:59 CEST
Last Modified:              10-24-2005 19:49 CEST
======================================================================
Summary:                    Preprocessor symbols accessible from macros API
Description: 
It would be nice to have somthing nicer than

Nemerle.Compiler.LexerBase.command_defines["timing"] or maybe just rename
command_defines.

I think it's worth consider change its type to Hashtable [string, string]
in order to get ,,real'' C -like defines. 
======================================================================

----------------------------------------------------------------------
 nazgul - 10-24-05 19:44 
----------------------------------------------------------------------
"Reorganize command_defines. There is a nice API to access it in
Nemerle.Compiler.Options now."

I removed the public accessibility of the mapping object.

Fixed on trunk (r5845)

----------------------------------------------------------------------
 nazgul - 10-24-05 19:49 
----------------------------------------------------------------------
And about C-like defines, we do not need them, you can use static literal
fields. Also, they should be visible to ConstantFolder, so you should be
able to ask ConstantFolder if in given GlobalEnv given name folds to some
literal.

Issue History
Date Modified  Username       Field                    Change              
======================================================================
10-24-05 16:59 tokugawa       New Issue                                    
10-24-05 19:44 nazgul         Status                   new => resolved     
10-24-05 19:44 nazgul         Resolution               open => fixed       
10-24-05 19:44 nazgul         Assigned To               => nazgul          
10-24-05 19:44 nazgul         Note Added: 0001004                          
10-24-05 19:44 nazgul         Description Updated                          
10-24-05 19:44 nazgul         Additional Information Updated                    
10-24-05 19:49 nazgul         Note Added: 0001005                          
======================================================================




More information about the bugs mailing list