cvs commit: hugs98/src static.c

Sigbjorn Finne sof@glass.cse.ogi.edu
Tue, 20 Nov 2001 23:26:26 -0800


sof         2001/11/20 23:26:26 PST

  Modified files:
    src                  static.c 
  Log:
  addMembers: back out rev 1.35 change; inventing a new constructor
  function name with the same name as the class is dangerous, since
  this runs the risk of conflicting with an already present constructor
  function.
  
  An example of which is the following bug report by Pepe Gallardo:
  
   data MkRecord = MkRecord { field  :: Int }
   class MkRecord a
   v = MkRecord 10
  
  This change breaks Snowball compatibility, I believe.
  
  Revision  Changes    Path
  1.44      +3 -3      hugs98/src/static.c