Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
examples/assembly/ncurses_life .imc error
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Chromatic  
View profile  
 More options Mar 7 2005, 6:02 pm
Newsgroups: perl.perl6.internals
From: chroma...@wgz.org (Chromatic)
Date: Mon, 07 Mar 2005 15:02:25 -0800
Local: Mon, Mar 7 2005 6:02 pm
Subject: Re: [Parrot 0.1.2] examples/assembly/ncurses_life.imc error

On Mon, 2005-03-07 at 20:43 +0100, Uwe Voelker wrote:
> if I try the ncurses_life.imc demo I get the error "Null PMC access in
> invoke()".
> I'm sure it has problems with the ncurses NCI. How can I solve the problem?

Apply this patch, then let me know if it fixes it for you so that I can
check it in.

For what it's worth, I turned on tracing, found the file and the line
with the problem, then removed it.

It might be better to port the demo to use the ncurses.imc file, as it
looks more recent, but this is the quickest patch I have.

-- c

  ncurses_fix.patch
< 1K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Leopold Toetsch  
View profile  
 More options Mar 8 2005, 3:51 am
Newsgroups: perl.perl6.internals
From: l...@toetsch.at (Leopold Toetsch)
Date: Tue, 8 Mar 2005 09:51:38 +0100
Local: Tues, Mar 8 2005 3:51 am
Subject: Re: [Parrot 0.1.2] examples/assembly/ncurses_life.imc error

Uwe Voelker <uwe.voel...@gmx.de> wrote:
> if I try the ncurses_life.imc demo I get the error "Null PMC access in
> invoke()".

Thanks for reporting, fixed.

BTW: examples/assembly/ncurses_life.imc is one of the oldest PIR files
in the whole tree and therefore written in quite an antique style.

If someone wants to exercise rewritting it to recent PIR it would become
a better example.

leo


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Uwe Voelker  
View profile  
 More options Mar 8 2005, 2:29 am
Newsgroups: perl.perl6.internals
From: uwe.voel...@gmx.de (Uwe Voelker)
Date: Tue, 08 Mar 2005 08:29:34 +0100
Local: Tues, Mar 8 2005 2:29 am
Subject: Re: [Parrot 0.1.2] examples/assembly/ncurses_life.imc error

>>if I try the ncurses_life.imc demo I get the error "Null PMC access in
>>invoke()".
> Apply this patch, then let me know if it fixes it for you so that I can
> check it in.

Yes it works!

> It might be better to port the demo to use the ncurses.imc file, as it
> looks more recent, but this is the quickest patch I have.

What is the difference of the .imc file? They both look _very_ similiar.
I could try to port the demo. Do you have a few hints, what needs to be
done.

Thanks.

Good bye, Uwe


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chromatic  
View profile  
 More options Mar 8 2005, 3:22 pm
Newsgroups: perl.perl6.internals
From: chroma...@wgz.org (Chromatic)
Date: Tue, 08 Mar 2005 12:22:14 -0800
Local: Tues, Mar 8 2005 3:22 pm
Subject: Re: [Parrot 0.1.2] examples/assembly/ncurses_life.imc error

On Tue, 2005-03-08 at 08:29 +0100, Uwe Voelker wrote:
> What is the difference of the .imc file? They both look _very_ similiar.
> I could try to port the demo. Do you have a few hints, what needs to be
> done.

PASM is the simplest, most tedious language that Parrot supports.  PIR
is nicer.  Of course, both have evolved over time, so the example source
files are historically interesting in the same way as low-level geologic
strata.

Editing the example to use the .imc file instead of the .pasm file
should just fix it, but if it doesn't, my favorite way to figure out
what's wrong is to run parrot -t example_file, look for the line of code
where things go wrong, and figure out what the right syntax is.

The most current NCI examples are the SDL bindings in examples/sdl/ and
runtime/parrot/library/SDL/.

-- c


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Leopold Toetsch  
View profile  
 More options Mar 9 2005, 3:07 am
Newsgroups: perl.perl6.internals
From: l...@toetsch.at (Leopold Toetsch)
Date: Wed, 9 Mar 2005 09:07:54 +0100
Local: Wed, Mar 9 2005 3:07 am
Subject: Re: [Parrot 0.1.2] examples/assembly/ncurses_life.imc error

Matt Diephouse <mdd...@gmail.com> wrote:
> Here's a first pass at that. I've changed it to:
>    - make use of the shortcuts for calling subroutines
>    - use ".sub"
>    - use ".local"

Thanks, applied.
leo

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »