MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Types in Mathematica

  • To: mathgroup at smc.vnet.net
  • Subject: [mg62999] Re: Types in Mathematica
  • From: Jon Harrop <usenet at jdh30.plus.com>
  • Date: Sat, 10 Dec 2005 06:03:15 -0500 (EST)
  • References: <dn38ed$3l7$1@smc.vnet.net> <dn8fof$bnu$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Steven T. Hatton wrote:
> Let's assume Vector3d has a conversion operator that returns a string
> representation.  I could simply pass it to an output stream that takes a
> string type, and the Vector3d would be converted to a string and put onto
> the stream.  No need to explicitly call a conversion function explicitly.

Overloading is simply done in a different way in Mathematica, e.g. using
inexhaustive pattern matches. This does not make Mathematica less powerful
than C++.

-- 
Dr Jon D Harrop, Flying Frog Consultancy Ltd.
http://www.ffconsultancy.com/products/ocaml_for_scientists/chapter1.html


  • Prev by Date: Re: How to hide a cell?
  • Next by Date: A list of numbers without "73"
  • Previous by thread: Re: Types in Mathematica
  • Next by thread: Re: Types in Mathematica