# Pascal & Ruby Link

**URL:** <https://www.ruby-forum.com/t/pascal-ruby-link/76763>\
**Category:** Ruby\
**Created:** [November 20, 2006, 11:34pm UTC](https://www.ruby-forum.com/t/pascal-ruby-link/76763 "2006-11-20T23:34:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jon\_Sawyer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/d2c977/32.png) [@Jon\_Sawyer](https://www.ruby-forum.com/u/Jon_Sawyer)\
**Post date:** [November 20, 2006, 11:34pm UTC](https://www.ruby-forum.com/t/pascal-ruby-link/76763/1 "2006-11-20T23:34:41Z")

</div>

First of all, hello. My name is Jon (BadQuatna) Sawyer and I’m somewhat  
new  
to ruby. I am an amateur programmer and program as a hobby, which you  
may  
not guess since it consumes so much of my time. I’ve never really  
written  
anything useful so you probably haven’t heard of me. I’ve been  
programming  
in Pascal since I was 12 (I’m 22 now) and have tried many other  
languages  
but none of them really bonded to me… until ruby… which I’ve fallen  
in  
love with. It has finally replaced my addiction to Pascal as a  
syntactically cleaner, more concise language.

However, as much as I love programming in ruby… I do still have  
feelings  
for pascal and sometimes think certain, low-level things would be much  
more  
efficient in pascal objects… If only there were a way for linking to  
two  
at the hip…

And that is the entire reason I’ve joined the ruby-talk ML… To  
explore  
the concept, if anyone is interested in talking with me about it.

If there is not a clean way of doing it then we might as well not… and  
by  
clean I mean it should not be much harder to use Pascal objects in Ruby  
and  
Ruby objects in pascal… anything requiring a great deal of “handling”  
code  
to accomplish this would ruin the idea.

Last but not least when I speak of pascal I refer specifically to the  
FreePascal dialect… The FreePascal compiler is very good at  
interfacing  
Pascal code with C code and I think is uniquely suited for this problem.

Anyone interested please reply. You can try to hunt me down on  
[irc.freenode.net](http://irc.freenode.net) in #fpc, #ruby-lang, #ruby4fpc ect as BadQuanta but I  
cannot guarantee when I will be on.

---

<div class="post-metadata">

**Author:** ![Jon\_Sawyer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/d2c977/32.png) [@Jon\_Sawyer](https://www.ruby-forum.com/u/Jon_Sawyer)\
**Post date:** [November 21, 2006, 2:05am UTC](https://www.ruby-forum.com/t/pascal-ruby-link/76763/2 "2006-11-21T02:05:01Z")

</div>

Jon Sawyer wrote:

[interesting snippage]

> Anyone interested please reply. You can try to hunt me down on  
> [irc.freenode.net](http://irc.freenode.net) in #fpc, #ruby-lang, #ruby4fpc ect as BadQuanta but I  
> cannot guarantee when I will be on.

Jon,

This seems worthwhile to me. Standard Pascal, as we know, is a giant  
pain and nearly useless.

But Object Pascal (which I think is equivalent to Free Pascal) is  
another matter. IIRC it’s trulyt object-oriented, very powerful,  
and overall a better language than C++ or Java (IMO).

I don’t know that anyone has ever tried this kind of interfacing.  
There is a guy who made a Ruby/Delphi bridge named Apollo… try  
looking him up.

And maybe you can help me lobby for an “in” operator for Ruby… 😉  
Some people love that idea, some hate it. It’s a minor point, but  
it would improve my life a little.

Cheers,  
Hal
