• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Why these errors?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why these errors?


  • Subject: Re: Why these errors?
  • From: Axel Luttgens <email@hidden>
  • Date: Mon, 10 Feb 2014 19:03:02 +0100

Le 10 févr. 2014 à 17:41, 2551 a écrit :

> Interesting, Jon.
>
> I don’t pretend to be an expert, but your assertion would have more merit if you backed it up with some explanation. The reason I say its not a true OOP language is because you can’t “pass down” either ivars or methods (aka ‘functions’ aka ‘handlers’) from one class to another. Indeed, at least in the way I understand it in languages like Objective-C and Ruby, AS doesn’t recognize ‘classes’ at all , even though it employs the concetps of ‘objects’. “Containment”, however, isn’t “inheritance”.
> [...]

Hello Phil,

I never would pretend to substitute myself to Jon... Anyway, doesn't this one:

	script Car
		property HasWheels : true
		property Maker : "a manufacturer"
		on getHasWheels()
			return its HasWheels
		end getHasWheels
		on getMaker()
			return its Maker
		end getMaker
	end script

	script Golf
		property parent : Car
		property Maker : "VAG"
	end script

	tell Golf
		log getHasWheels()
		log getMaker()
	end tell

show some colors of OOP?
Not even a little bit?

Axel


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden


  • Follow-Ups:
    • Re: Why these errors?
      • From: 2551 <email@hidden>
References: 
 >Why these errors? (From: Christian Boyce <email@hidden>)
 >Re: Why these errors? (From: 2551 <email@hidden>)
 >Re: Why these errors? (From: Christian Boyce <email@hidden>)
 >Re: Why these errors? (From: 2551 <email@hidden>)
 >Re: Why these errors? (From: Jon Pugh <email@hidden>)
 >Re: Why these errors? (From: 2551 <email@hidden>)

  • Prev by Date: Re: Why these errors?
  • Next by Date: Re: Why these errors?
  • Previous by thread: Re: Why these errors?
  • Next by thread: Re: Why these errors?
  • Index(es):
    • Date
    • Thread