Ask a Question related to Ruby, Design and Development.
-
Zach Dennis #1
Ruby/Tk Some Basic Questions
Hi,
I'm playing with Ruby/Tk and I've got the Perl/Tk book and some other
text/online documentation to go along with. I am wondering if there is a
major difference between TkRoot and TkWindow and it might be. In all of the
ruby examples folks use TkRoot and assign all widgets to it, but the
TkWindow still exists. So why use one over the other?
Any input is greatly appreciated.
Thanks!
Zach
Zach Dennis Guest
-
Basic Questions about FMS. Please help
Hi, I have see Flash Media Server 2.0.4 that I use to make multiplayer game with shared objects. Now there are 2 more servers called 1 - Flash... -
Some basic questions
Hi All, I've been looking into flex a bit for the last day or two. I have a question though, flex 2 doesn't do player compatibility (pre version... -
Basic questions about flex
I posted earlier on this topic to this forum but the posting seems top have got lost. I use Freebsd/Linux/sun as servers and woulod not use... -
couple of basic questions...
1) does coldfusion mx NOT read .asp pages? as I cannot get mine to view .asp pages but .cfm pages are fine....??? 2) when showing data from a... -
Basic Questions
lallous <lallous@lgwm.org> wrote: od -cx and hd Possibly nothing at all, probably where /u or some other is mounted. Type "mount" or "df... -
David D'Andrea #2
Re: Ruby/Tk Some Basic Questions
If you'll forgive another newbie question:
What is an abstract class?
I think of classes as abstract already, and objects as concrete. Maybe
an abstract class is one that never gets instantiated, but is always
further specified / subclassed before being used?
David
On Monday, November 10, 2003, at 08:49 PM, Hidetoshi NAGAI wrote:
> Hi,
>
> From: "Zach Dennis" <zdennis@mktec.com>>>> I am wondering if there is a
>> major difference between TkRoot and TkWindow and it might be. In all
>> of the
>> ruby examples folks use TkRoot and assign all widgets to it, but the
>> TkWindow still exists. So why use one over the other?
> TkWindow class is an abstract class.
> --
> Hidetoshi NAGAI
> (nagai@ai.kyutech.ac.jp)
>
David D'Andrea Guest
-
Lyle Johnson #3
Re: Ruby/Tk Some Basic Questions
David D'Andrea wrote:
Yes, your guess is correct. Abstract base classes are never themselves> If you'll forgive another newbie question:
>
> What is an abstract class?
>
> I think of classes as abstract already, and objects as concrete. Maybe
> an abstract class is one that never gets instantiated, but is always
> further specified / subclassed before being used?
instantiated, but rather provide a set of basic functionality that their
(concrete) subclasses use.
Lyle Johnson Guest
-
Zach Dennis #4
Re: Ruby/Tk Some Basic Questions
I think that is a good question!!
I know an abstract class in Java, and I just figured the same thing applied
here in a ruby-ish way, but I was pondering the exact same question! What is
an abstract class in Ruby?
Zach
-----Original Message-----
From: David D'Andrea [mailto:david.dandrea@sympatico.ca]
Sent: Tuesday, November 11, 2003 1:05 PM
To: ruby-talk ML
Subject: Re: Ruby/Tk Some Basic Questions
If you'll forgive another newbie question:
What is an abstract class?
I think of classes as abstract already, and objects as concrete. Maybe
an abstract class is one that never gets instantiated, but is always
further specified / subclassed before being used?
David
On Monday, November 10, 2003, at 08:49 PM, Hidetoshi NAGAI wrote:
> Hi,
>
> From: "Zach Dennis" <zdennis@mktec.com>>>> I am wondering if there is a
>> major difference between TkRoot and TkWindow and it might be. In all
>> of the
>> ruby examples folks use TkRoot and assign all widgets to it, but the
>> TkWindow still exists. So why use one over the other?
> TkWindow class is an abstract class.
> --
> Hidetoshi NAGAI
> (nagai@ai.kyutech.ac.jp)
>
Zach Dennis Guest
-
David D'Andrea #5
Re: Ruby/Tk Some Basic Questions
I got this reply from Lyle Johnson (thanks), so just in case anyone
else was wondering:
their> Yes, your guess is correct. Abstract base classes are never themselves
> instantiated, but rather provide a set of basic functionality thatI suppose there's no way to enforce the non-instantiation of these> (concrete) subclasses use.
abstract classes, you just don't unless you're feeling perverse.
(me never, really!)
David
On Tuesday, November 11, 2003, at 01:44 PM, Zach Dennis wrote:
> I think that is a good question!!
>
> I know an abstract class in Java, and I just figured the same thing
> applied
> here in a ruby-ish way, but I was pondering the exact same question!
> What is
> an abstract class in Ruby?
>
> Zach
>
> -----Original Message-----
> From: David D'Andrea [mailto:david.dandrea@sympatico.ca]
> Sent: Tuesday, November 11, 2003 1:05 PM
> To: ruby-talk ML
> Subject: Re: Ruby/Tk Some Basic Questions
>
>
> If you'll forgive another newbie question:
>
> What is an abstract class?
>
> I think of classes as abstract already, and objects as concrete. Maybe
> an abstract class is one that never gets instantiated, but is always
> further specified / subclassed before being used?
>
> David
>
> On Monday, November 10, 2003, at 08:49 PM, Hidetoshi NAGAI wrote:
>>>> Hi,
>>
>> From: "Zach Dennis" <zdennis@mktec.com>>>>>> I am wondering if there is a
>>> major difference between TkRoot and TkWindow and it might be. In all
>>> of the
>>> ruby examples folks use TkRoot and assign all widgets to it, but the
>>> TkWindow still exists. So why use one over the other?
>> TkWindow class is an abstract class.
>> --
>> Hidetoshi NAGAI
>> (nagai@ai.kyutech.ac.jp)
>>
>
>
>
David D'Andrea Guest
-
Zach Dennis #6
Re:
I am running
Ruby 1.8.0
Tcl/Tk 8.3
Windows 2000
Zach
----- Original Message -----
From: "Hidetoshi NAGAI" <nagai@ai.kyutech.ac.jp>
To: "ruby-talk ML" <ruby-talk@ruby-lang.org>; <zdennis@mktec.com>
Sent: Tuesday, November 11, 2003 7:51 PM
Here> Hi,
>
> From: "Zach Dennis" <zdennis@mktec.com>
> Subject:
> Date: Wed, 12 Nov 2003 12:28:52 +0900
> Message-ID: <001901c3a8e6$18952d80$6501a8c0@Laptop>> > I'm having bind problems with TkRoot. I want to detect a window resize.>> > is what I am attempting:
> I cannot reproduce your problem.
>
> # ruby 1.8.1 (2003-11-07) [i686-linux] & Tcl/Tk8.4.4
>
> Please tell me your environment (ruby version, tcl/tk version,
> platform, and so on).
> --
> Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
>
>
>
Zach Dennis Guest
-
Hidetoshi NAGAI #7
Re:
From: "Zach Dennis" <zdennis@mktec.com>
Subject: Re:
Date: Wed, 12 Nov 2003 12:58:51 +0900
Message-ID: <007301c3a8ea$49a4da20$6501a8c0@Laptop>Maybe your problem depends on "Tcl/Tk's vwait problem".> I am running
> Ruby 1.8.0
> Tcl/Tk 8.3
> Windows 2000
Could you try the recent version of tcltklib.c?
There are many changes between between yours and the current CVS.
# ruby-1.8.0/ext/tcltklib/tcltklib.c : 1253 lines
# Ruby-CVS/ruby/ext/tcltklib/tcltklib.c : 2396 lines
--
Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
Hidetoshi NAGAI Guest
-
Zach Dennis #8
Re:
It's late I think I am thinking off base at the moment. Thanks for your help
Hidetoshi. I'm heading to bed and I'll update tomorrow on any progress.
Zach
----- Original Message -----
From: "Hidetoshi NAGAI" <nagai@ai.kyutech.ac.jp>
To: "ruby-talk ML" <ruby-talk@ruby-lang.org>; <zdennis@mktec.com>
Sent: Tuesday, November 11, 2003 8:18 PM
Subject: Re:
> From: "Zach Dennis" <zdennis@mktec.com>
> Subject: Re:
> Date: Wed, 12 Nov 2003 12:58:51 +0900
> Message-ID: <007301c3a8ea$49a4da20$6501a8c0@Laptop>>> > I am running
> > Ruby 1.8.0
> > Tcl/Tk 8.3
> > Windows 2000
> Maybe your problem depends on "Tcl/Tk's vwait problem".
> Could you try the recent version of tcltklib.c?
> There are many changes between between yours and the current CVS.
>
> # ruby-1.8.0/ext/tcltklib/tcltklib.c : 1253 lines
> # Ruby-CVS/ruby/ext/tcltklib/tcltklib.c : 2396 lines
> --
> Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
>
>
>
Zach Dennis Guest
-
nobu.nokada@softhome.net #9
Re: Help Compiling Ruby 1.8.1
Hi,
At Thu, 13 Nov 2003 00:10:08 +0900,
Zach Dennis wrote:You have to specify DESTDIR as absolute path.> H:\ruby-1.8.1\win32>nmake DESTDIR=temp install
--
Nobu Nakada
nobu.nokada@softhome.net Guest
-
nobu.nokada@softhome.net #10
Re: Help Compiling Ruby 1.8.1
Hi,
At Thu, 13 Nov 2003 02:22:10 +0900,
Zach Dennis wrote:Hmmm, do you set TEMP environment variable?> I:\source\languages\ruby\source\ruby-1.8.1\bcc32>configure
> 1 file(s) copied.
> MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
> MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
> Creating Makefile
>
> ** error 1 ** deleting -prologue-
--
Nobu Nakada
nobu.nokada@softhome.net Guest



Reply With Quote

