2002-01-17 Miguel de Icaza <miguel@ximian.com>
* const.cs: Allow `unsafe'
* interface.cs: (PopulateMethod): Check for pointers being defined
only if the unsafe context is active.
(PopulateProperty): ditto.
(PopulateIndexer): ditto.
* class.cs (Method, Method.Define): Allow `unsafe' modifier to be
specified. If pointers are present, make sure that they are
present in an unsafe context.
(Constructor, Constructor.Define): ditto.
(Field, Field.Define): ditto.
(Property, Property.Define): ditto.
(Event, Event.Define): ditto.
* decl.cs (MemberCore.UnsafeOK): New function to test that a
pointer is being declared in an unsafe context.
2002-01-16 Miguel de Icaza <miguel@ximian.com>
* modifiers.cs (Modifiers.Check): Require a Location argument.
Report error 227 for Unsafe use.
* typemanager.cs: Remove IsPointerType, we should be using Type.IsPointer
svn path=/trunk/mcs/; revision=2014
13 files changed: