[fpc-pascal]Linked List/ pointers/ casting/ OOP Question

2004-07-09 Thread Ron Weidner
I thought I was getting closer to understanding pointers but it appears that I'm still not getting it. I wrote the following code fragment but it doesn't compile. the errors I get are... Widget_container_class.pas(80,27) Error: Illegal qualifier Widget_container_class.pas(88,23) Error: Illegal q

Re: [fpc-pascal]Linked List/ pointers/ casting/ OOP Question

2004-07-09 Thread Michael . VanCanneyt
On Fri, 9 Jul 2004, Ron Weidner wrote: > I thought I was getting closer to understanding > pointers but it appears that I'm still not getting it. > I wrote the following code fragment but it doesn't > compile. the errors I get are... > > Widget_container_class.pas(80,27) Error: Illegal > qual

Re: [fpc-pascal]Linked List/ pointers/ casting/ OOP Question

2004-07-09 Thread Ron Weidner
> At first glance, this should read > PwidgetSomething(PCurWidget^.widget)^.meta = > 'ENTITY' > because widget is an untyped pointer ? > > And the same for the other line ? > > Michael. Thanks Michael. Actually widget is a typed pointer but the problem I was trying to solve is that widget co

Re: [fpc-pascal]Linked List/ pointers/ casting/ OOP Question

2004-07-09 Thread Marcel Martin
Ron Weidner a écrit : > > I thought I was getting closer to understanding > pointers but it appears that I'm still not getting it. > I wrote the following code fragment but it doesn't > compile. the errors I get are... > > Widget_container_class.pas(80,27) Error: Illegal > qualifier > Widget_co

[fpc-pascal]Yet another problem concerning Qualifiers

2004-07-09 Thread Anton Tichawa
Hello List! Compiling the unit === unit test; interface procedure test.do_test; implementation procedure test.do_test; begin end; end. === results in compiler errors: test.pas(5,15) Error: overloaded identifier TEST isn't a function test.pas(5,15) Fatal: Syntax error, ; expected but . found IMHO, t

Re: [fpc-pascal]Linked List/ pointers/ casting/ OOP Question

2004-07-09 Thread Anton Tichawa
Hello! Ron Weidner wrote: I thought I was getting closer to understanding pointers but it appears that I'm still not getting it. I wrote the following code fragment but it doesn't compile. the errors I get are... Widget_container_class.pas(80,27) Error: Illegal qualifier Widget_container_class.pas

Re: [fpc-pascal]Yet another problem concerning Qualifiers

2004-07-09 Thread Marcel Martin
Anton Tichawa a écrit : > > Hello List! > > Compiling the unit > > === > > unit test; > > interface > > procedure test.do_test; > > implementation > > procedure test.do_test; > begin > end; > > end. > > === > > results in compiler errors: > > test.pas(5,15) Error: overloaded identifier

Re: [fpc-pascal]Linked List/ pointers/ casting/ OOP Question

2004-07-09 Thread Ron Weidner
> Note: I don't see the definition of PWidget in your > code peace. I assume > it's a pointer to a record containing a string > member named meta. But in > your procedure > > procedure AddWidget(PWidget:pointer); > > you use the very same identifier, PWidget, for a > variable name. That's a >

Re: [fpc-pascal]Yet another problem concerning Qualifiers

2004-07-09 Thread Ron Weidner
--- Marcel Martin <[EMAIL PROTECTED]> wrote: > Anton Tichawa a écrit : > > > > Hello List! > > > > Compiling the unit > > > > === > > > > unit test; > > > > interface > > > > procedure test.do_test; > > > > implementation > > > > procedure test.do_test; > > begin > > end; > > > > end. > >