Re: [Lazarus] Nested Classes used as Namespace Issue

2011-02-11 Thread Mattias Gaertner
On Sun, 9 Jan 2011 22:43:23 -0600 Andrew Brunner andrew.t.brun...@gmail.com wrote: type ns=class Type Vendor=class Const id= ITMID'; Size = 'ITMSIZE'; Type PVendor=^TVendor; TVendor=record ID : Int64; Size :

Re: [Lazarus] Nested Classes used as Namespace Issue

2011-01-11 Thread Razvan Adrian Bogdan
On Mon, Jan 10, 2011 at 9:48 PM, Sven Barth pascaldra...@googlemail.comwrote: In Pascal all type declarations appear in blocks that are named type. This is the case in global unit scope, in local method scope and in class scope as well. So I don't think one should brake with the way Pascal

Re: [Lazarus] Nested Classes used as Namespace Issue

2011-01-11 Thread Sven Barth
Am 11.01.2011 14:49, schrieb Razvan Adrian Bogdan: On Mon, Jan 10, 2011 at 9:48 PM, Sven Barth pascaldra...@googlemail.com mailto:pascaldra...@googlemail.com wrote: In Pascal all type declarations appear in blocks that are named type. This is the case in global unit scope, in local

Re: [Lazarus] Nested Classes used as Namespace Issue

2011-01-11 Thread Paul Ishenin
11.01.2011 20:49, Razvan Adrian Bogdan wrote: type TMyStruct = record NestedStruct = record SimpleMember: string; end; end; What compiler can compile this type? Type keyword is requires to disctinct different sections inside structures. In classes, records and object

Re: [Lazarus] Nested Classes used as Namespace Issue

2011-01-11 Thread Razvan Adrian Bogdan
On Tue, Jan 11, 2011 at 4:18 PM, Paul Ishenin webpi...@mail.ru wrote: 11.01.2011 20:49, Razvan Adrian Bogdan wrote: type TMyStruct = record NestedStruct = record SimpleMember: string; end; end; What compiler can compile this type? Type keyword is requires to

Re: [Lazarus] Nested Classes used as Namespace Issue

2011-01-11 Thread Paul Ishenin
11.01.2011 23:40, Razvan Adrian Bogdan ?: On Tue, Jan 11, 2011 at 4:18 PM, Paul Ishenin webpi...@mail.ru mailto:webpi...@mail.ru wrote: 11.01.2011 20:49, Razvan Adrian Bogdan wrote: type TMyStruct = record NestedStruct = record

Re: [Lazarus] Nested Classes used as Namespace Issue

2011-01-10 Thread Razvan Adrian Bogdan
On Mon, Jan 10, 2011 at 6:43 AM, Andrew Brunner andrew.t.brun...@gmail.comwrote: type ns=class Type Vendor=class Const id= ITMID'; Size = 'ITMSIZE'; Type PVendor=^TVendor; TVendor=record ID : Int64; Size : Integer;

Re: [Lazarus] Nested Classes used as Namespace Issue

2011-01-10 Thread Sven Barth
On 10.01.2011 17:50, Razvan Adrian Bogdan wrote: On Mon, Jan 10, 2011 at 6:43 AM, Andrew Brunner andrew.t.brun...@gmail.com mailto:andrew.t.brun...@gmail.com wrote: type ns=class Type Vendor=class Const id= ITMID'; Size = 'ITMSIZE';

[Lazarus] Nested Classes used as Namespace Issue

2011-01-09 Thread Andrew Brunner
type ns=class Type Vendor=class Const id= ITMID'; Size = 'ITMSIZE'; Type PVendor=^TVendor; TVendor=record ID : Int64; Size : Integer; end; class procedure Foo(); end; Supplier=class //

Re: [Lazarus] Nested Classes used as Namespace Issue

2011-01-09 Thread Paul Ishenin
10.01.2011 11:43, Andrew Brunner wrote: type ns=class Type Vendor=class Const id= ITMID'; Size = 'ITMSIZE'; Type PVendor=^TVendor; TVendor=record ID : Int64; Size : Integer; end; class procedure