This site is no longer active and is available for archival purposes only. Registration and login is disabled.

What is wrong with this simple example?


What is wrong with this simple example?

Postby zeeforel » Mar 7, 2005 @ 9:58pm

Last edited by zeeforel on Mar 9, 2005 @ 10:40am, edited 1 time in total.
zeeforel
pm Member
 
Posts: 21
Joined: Jan 23, 2005 @ 4:23pm
Location: The Netherlands, Nieuwerkerk a/d IJssel


Postby PointOfLight » Mar 8, 2005 @ 4:03am

Could you be more specific as to what kind of error you're getting? I just copied everything from your sample, pasted it into a PPL file, and it ran just fine. As for the #code statement, it's better to let kornalius speak to this, but I believe it has to do with markings for the visual editor and how it relates the code to what you did visually in the editor.
Eric Pankoke
Programmer
Point Of Light Software
http://www.polsoftware.com/
PointOfLight
pm Member
 
Posts: 525
Joined: Nov 2, 2003 @ 8:39pm


more specific

Postby zeeforel » Mar 8, 2005 @ 9:30am

zeeforel
pm Member
 
Posts: 21
Joined: Jan 23, 2005 @ 4:23pm
Location: The Netherlands, Nieuwerkerk a/d IJssel


Sorry, sorry

Postby zeeforel » Mar 8, 2005 @ 10:53am

The code on the PPC differed from what I had on the PC. I thought there was some kind of automatic sync.

Sorry again but at least the code works!
zeeforel
pm Member
 
Posts: 21
Joined: Jan 23, 2005 @ 4:23pm
Location: The Netherlands, Nieuwerkerk a/d IJssel


Postby PointOfLight » Mar 8, 2005 @ 1:39pm

That's what I don't understand. The Hello World function executed just fine for me. As for the code being different, it is and it isn't. When PPL compiles a program to run it on the PPC, it compiles the code and form into one module, which is what the #code and #form deliniations are for. Hopefully Kornalius will jump in here at some point so I'm not misspeaking, but I'm pretty sure that's what's going on. I'm not really sure why you're not seeing the results you'd expect from the program, though. It works just fine for me. Try creating a new PPL file (not a project), copying the code you pasted in this thread into the PPL file, and run it. Let us know if that works or not.
Eric Pankoke
Programmer
Point Of Light Software
http://www.polsoftware.com/
PointOfLight
pm Member
 
Posts: 525
Joined: Nov 2, 2003 @ 8:39pm


Postby kornalius » Mar 8, 2005 @ 2:05pm

Hi,

The #code tag is an internal feature for the PIDE debugger to know which file and which component is being ran. Yes you can delete it, but it doesn't affect the program at all when running though.
Regards,
Kornalius
President
ArianeSoft Inc.
http://www.arianesoft.ca
User avatar
kornalius
pm Member
 
Posts: 1704
Joined: Dec 9, 2003 @ 6:04pm
Location: Montreal, Québec, Canada


how does the PIDE actually work?

Postby zeeforel » Mar 8, 2005 @ 9:50pm

zeeforel
pm Member
 
Posts: 21
Joined: Jan 23, 2005 @ 4:23pm
Location: The Netherlands, Nieuwerkerk a/d IJssel


Postby PointOfLight » Mar 8, 2005 @ 10:45pm

Eric Pankoke
Programmer
Point Of Light Software
http://www.polsoftware.com/
PointOfLight
pm Member
 
Posts: 525
Joined: Nov 2, 2003 @ 8:39pm


Postby kornalius » Mar 9, 2005 @ 2:57am

Regards,
Kornalius
President
ArianeSoft Inc.
http://www.arianesoft.ca
User avatar
kornalius
pm Member
 
Posts: 1704
Joined: Dec 9, 2003 @ 6:04pm
Location: Montreal, Québec, Canada


OK!

Postby zeeforel » Mar 9, 2005 @ 10:39am

zeeforel
pm Member
 
Posts: 21
Joined: Jan 23, 2005 @ 4:23pm
Location: The Netherlands, Nieuwerkerk a/d IJssel


Postby zeeforel » Mar 9, 2005 @ 10:05pm

zeeforel
pm Member
 
Posts: 21
Joined: Jan 23, 2005 @ 4:23pm
Location: The Netherlands, Nieuwerkerk a/d IJssel


Return to Pocket Programming Language (PPL)


Sort


Forum Description

Discuss this new development tool.

Moderator:

kornalius

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum