Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Ultimate OOP

Name: Anonymous 2011-11-12 0:50

Why can't there be a programming language that supports the Ruby idea of making everything an object, but at the same time use C++ features like copying with marshaling (I don't know whose idea it was to make everything in Ruby a pointer, but it makes making hard copies a bitch), multiple inheritance and constructor overloading. Furthermore, why can't said language be made to compile down to assembly like C and C++, rather than the vast majority of Object Oriented languages which run in an interpreter?

Name: Anonymous 2011-11-12 0:56

As long as it's statically typed, it would be relatively trivial- even moreso if you simply translate the high-level-language-with-good-syntax down to C++ and then use g++. But no one has done it yet, low hanging fruit IMO.

Name: Anonymous 2011-11-12 1:02

>>2

I think one would find that it would essentially become C++.

Name: Anonymous 2011-11-12 1:11

>>3

Except of course with all the ints and floats and such being considered objects, and all the arrays being essentially vectors.

Name: Anonymous 2011-11-12 1:24

>>4
It doesn't need to be. A nicely defined subset with modern, non-curlybrace syntax, and you'd probably have a popular language on your hands.

For example, vala/geany are nice (the former uses c#-like syntax, however). If you've seen the benchmarks you can get pretty impressive speeds. Shame they rely on gobject, though.

Name: Anonymous 2011-11-12 2:34

>>5

Ya, but why the fuck not make them all objects for simplicity's sake?

Name: Anonymous 2011-11-12 6:52

>>1
Ruby idea of making everything an object
U MENA SMACKTALK-80

Name: Anonymous 2013-09-01 11:10



    「 ̄ ̄|
     ̄7 /      __
    /,へ\    /::/ 、\
   く/  \>   |::::|  \ヽ.    /7\     ,. -───- 、
             |::::|__.';ハ_  |::|`|::|   /
   [][]r┐  , '" \\   |:::|r `7:/、.!::! /   幻  ほ
    r'.ノ /   r‐─'>'"´ ̄ `ヽく/イ  |    想  っ
  , ─ ┐/    ゝ‐/.        | `ヽrヽ |    郷.  と
  // ̄| | !  / ̄ ,.' ,'  /   ,  ,'   ∨ヽ    が   く
  `  .//,_r'´]_ノ| ./ _メ、/|  ∧|   ヽ」__   み   と
   .//{__r'´ ./ |/ 'Tテむr // __」   トイ    だ
    ` ヽ.|   ! .∠ イ 弋_ソ '´   ァr|、  /イ|.    れ
      |  人 (| |xx      , り,ハ/-'  、  る
  /  ,'  |  ) 八     __  x!/|.    \
 /  /  /   /ハ \     /!/       `'' ー─ ''"´
 !  /   /, '" ̄`ヽ|  ハ` r-イ | |
   .|  /::::::::::::::::::::::',  |\|\-、 !ヽ
  ノ  |:::::::::::::::::::::::::::|\ !ヽ \ |:::} ̄Y ´{
 (   r':::::::::::::::::::::\} ̄`Y´ ̄{/|ヽレ'ハ‐┘ 
_ノ ) ノヽ;:::_l_::::::::::;::イ\_/|ヽ- ' /、::::\リヽ.     、ヽ.
} ̄ヽァ‐/´:::::::`ヽ.__ノ::::::/ !\._/::::::ヽ:::::':, ,ハ     ',  ',
|__.ンヽ/ ̄`ヽ:;__/::::::::::::| ./:::::::::::::::::::::::::::::}. | /´{   |   |
 |  /ヽ-へ.__/ \::::::::、レ'::::::::::::::::::::::ノ:::ノ\リく_」.  !   !
.ノ /   ‐-'、  ,ハ::::::::゙:::::::::::::::::''":::::::|   `' 、     /
  l、     \ r!::::::::::::::::::::::::::::::/l::::|、    \

Don't change these.
Name: Email:
Entire Thread Thread List