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

Pages: 1-4041-

How do you call an object's elements?

Name: Anonymous 2007-09-29 11:05 ID:Cf0T2Pra

1) Attributes
2) Members
3) Properties (faggot)
4) Other

Name: Anonymous 2007-09-29 11:05 ID:emrHdR/4

Elements.

Name: Anonymous 2007-09-29 11:12 ID:CpA16BId

4) (cdr obj)

Name: Anonymous 2007-09-29 11:20 ID:LUmfetjW

My other car is a member.

Name: Anonymous 2007-09-29 11:48 ID:UKpBPzyC

My other class is a private C++ struct

Name: Anonymous 2007-09-29 12:50 ID:ZxIUcCsi

>>5
One word, the forced class of Sepples, thread over.

Name: Anonymous 2007-09-29 12:57 ID:JUlauZ04

Variables and closures

Name: Anonymous 2007-09-29 13:00 ID:EL3x0v+F

Sepples?

Name: Anonymous 2007-09-29 13:02 ID:EL3x0v+F

What is Sepples?

Name: Anonymous 2007-09-29 13:06 ID:wj9NrQ9j

Slots

Name: Anonymous 2007-09-29 13:12 ID:KymDk6Xc

If Larry Wall calls them something, I'd like to call them the same.

Name: Anonymous 2007-09-29 13:14 ID:Heaven

If GJS calls them something, I'd like to call them the same.

Name: Anonymous 2007-09-29 14:52 ID:59I37K84

Members if they're accessed directly, like a struct's. Attributes if you need to call accessors (or go through the C# attribute mechanism), and properties if the accessors compute the value rather than returning it straight from somewhere.

Depends on circumstance really. In CORBA there's no point in calling them anything except attributes.

In C though, structs and unions have fields, like a fill-out form would have.

Name: Anonymous 2007-09-29 16:06 ID:cndnQ8y5

>>13
This is why I think OO advocates are faggots, even though I use OO all the time.

It's a simple fucking idea. Pick one word and stick to it. If you feel the need to differentiate on minute details, go back to C++.

Name: Anonymous 2007-09-29 16:31 ID:59I37K84

>>14
Yeah, I rarely use C++ or stuff like that anymore. It's C and Haskell on my own stuff, and Perl & Java at work. But in general it's useful to have definitions for stuff besides the "it's like a variable that you get to with the deref operator" thing everyone knows informally, inside their head.

I mean, this is still quite a way from full-blown design pattern faggotry.

Name: Anonymous 2007-09-29 17:21 ID:ZxIUcCsi

>>14
Case in point:

static_cast
const_cast
dynamic_cast
reinterpret_cast

IT IS A FUCKING CAST.

Name: Anonymous 2007-09-29 17:25 ID:tT5SS3h5

>>14
I think like this man. And I just call them properties.

Name: Anonymous 2007-09-29 17:28 ID:Heaven

>>17
Nice ID

Name: Anonymous 2007-09-29 18:22 ID:Heaven

Elements.

Thread over.

Name: Anonymous 2007-09-29 21:08 ID:Q81OKaVQ

Fire, earth, wind and water. These are the elements that all objects are built from. You call them by speaking their true names. To keep it easy, they are all named cdr.

Name: Anonymous 2007-09-29 21:48 ID:cndnQ8y5

Well, to be fair, we programmers have to put up with a lot of bullshit like this, not just in the OO world (although OO is far and away the worst of the lot).

For example, how many different names are there for hashes? I can think of four (or five if you include tables) off the top of my head. What the fuck?

Name: G.J. Sussman 2007-09-29 21:49 ID:Heaven

   . . ,.".".'"""..
  .             ,__\.~~
 .    ;'``` '``     \!"
 .   `.              \~"
  .., '  ____________|'~"
 `.  .__/     |_|    |\
  `..'  |  = /  | =  ||        My other car?
      | \___/   |\___|/        It's a cdr.
      |        _|    |
       \      __     |
        \    /__\  ./
        |`'._____.'|
       /|          /\
    __/  \________/  |__
      \   / #####/\  |
       \ /  \###/  \/
            |###\

Name: Anonymous 2007-09-29 22:17 ID:V1yoTK3l

>>21
Hrm,

Hash table
Hash map
Table, map.

Am I missing one?

Name: Anonymous 2007-09-29 22:25 ID:wj9NrQ9j

>>23
Dictionary

Name: Anonymous 2007-09-29 22:33 ID:V1yoTK3l

Oh, multimap as well (in C++ anyway) allowing for duplicate keys.
So that's 6:
Hash Table
Hash Map
Map
Multimap
Table
Dictionary

Name: Anonymous 2007-09-29 23:11 ID:22IYg+ne

ObjectFactoryGeneratorClass

Name: Anonymous 2007-09-30 0:25 ID:1Q8ZNzbL

>>25
Some Unix shells call it an "associative array". Yeah.

Name: Anonymous 2007-09-30 0:58 ID:+mYclUai

>>25
javascript calls it an "object".

Name: Anonymous 2007-09-30 1:01 ID:Heaven

>>28
window['alert'](window['navigator']['userAgent'])
lulz

Name: Anonymous 2007-09-30 1:17 ID:ytS3zP/X

>>25
Don't forget associative array.

Name: Anonymous 2007-09-30 1:18 ID:Heaven

Whoops. >>27 beat me.

Name: Anonymous 2007-10-01 3:42 ID:USyYnU4c

You people are silly. Associative arrays, maps, multimaps and so forth are just names for the interface. The usual C++ STL, for instance, implements maps, multimaps, sets and multisets on top of red-black trees; that's why in order to use something as a key in a map or a member in a set it needs to have the ordering operators defined.

A hash map, then, is just a map implemented as a hash table.

All of these expressions have meanings, and you would do well not to lump them together so that you can forget all but one of them.

Name: Anonymous 2009-03-06 10:03

Have to provide a   way to check   When someone has   DONE IT SO   are vi m   and Emacs and   was looking for   any reason to   use a concatenative   language Forth Joy.

Name: Anonymous 2011-06-27 13:33

nice thread op

Name: Anonymous 2011-06-27 13:53


"thing it responds with when sent a message"

Name: Anonymous 2011-06-27 14:12

>>35
get the fuck mack to squeak

Name: Anonymous 2011-06-27 15:00

lol mack wtf

Name: Anonymous 2011-06-27 23:24

free variables

Name: Anonymous 2011-06-28 0:38

>>38
those are only privates though

Name: Anonymous 2011-06-28 5:47

Struct offsets.

Name: Anonymous 2011-06-28 5:54

How do you call an object's elements?
By reference, of course.

Name: Anonymous 2011-06-28 6:48

NIGGER I CALL IT A NIGGER HAHAHA AMIRIGHT?

Name: Anonymous 2011-06-28 7:01

>>42
Rude niggerlike loutsk.

Name: Anonymous 2011-06-28 9:44

NO WAIT WAIT U CALL IT AUTISTIG NIGGER FART U GET IT AUTISTIC NIGGER FART? AHAHA IM THE BEST

Name: Anonymous 2011-06-28 9:58

>>43
NIGGER FAGGIT

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