9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Roswell Grey <orangecalx01@gmail.com>
To: 9fans@9fans.net
Subject: [9fans] Basic limbo programming help
Date: Sat, 27 Jun 2015 00:58:44 -0400	[thread overview]
Message-ID: <CA+VQh+y1wXtkSpz9GMjaADSS3zLUwW+PGu4d_wHf+FNd5v=mag@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1400 bytes --]

Hello fellow 9fans! I'm currently trying to learn limbo programming for fun
and profit. I'm experienced in java and other languages, but I'd like to
learn limbo because I want to (wait for it, drumroll please!) build a
distributed agent-based system. The agents themselves aren't anything
complicated; I've already written a prototype in java. However, limbo
offers a vastly superior communications system than java (and windows for
that matter), so I believe inferno is going to be a great choice in the
desired platform. However, first thing's first, is learning the language.
So, I'm reading "A descent into Limbo." And the first program example runs
fine. However, the second, the graphical hello world, does not. I'm having
a problem with the line:

t := tk->toplevel(ctxt.screen "");

The compiler is telling me that screen isn't a reference of ctxt, and it
expected display instead. But if I change the reference from context to
display, well... It will compile and run, but I don't get a button. The
example pictures show a different inferno button than what is in the
current version, so maybe it's an outdated example? Or is ctxt really the
author telling me "don't copy and paste, think about what goes here!"
Because I'm finding those hinted in other example codes as well. So, if
there are any limbo programmers out there, would you mind giving me a hand?
Thanks!

[-- Attachment #2: Type: text/html, Size: 1514 bytes --]

             reply	other threads:[~2015-06-27  4:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-27  4:58 Roswell Grey [this message]
2015-06-27 10:35 ` Charles Forsyth
2015-06-27 13:38   ` Charles Forsyth

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CA+VQh+y1wXtkSpz9GMjaADSS3zLUwW+PGu4d_wHf+FNd5v=mag@mail.gmail.com' \
    --to=orangecalx01@gmail.com \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).